forked from binarylane/binarylane-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (77 loc) · 2.34 KB
/
pyproject.toml
File metadata and controls
90 lines (77 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[tool.poetry]
name = "binarylane-cli"
version = "0.15.1"
description = ""
authors = ["Nathan O'Sullivan <nathan.osullivan@mammoth.com.au>"]
readme = "README.md"
packages = [{include = "binarylane", from = "src"}, {include = "binarylane", from = "lib" }]
[tool.poetry.dependencies]
python = "^3.7.2"
terminaltables = "^3.1.10"
httpx = "^0.23.0"
attrs = "^22.2.0"
python-dateutil = "^2.8.2"
"backports.cached-property" = { version = "^1.0.2", python = "<3.8" }
typing-extensions = { version = "^4.0.0", python = "<3.8" }
importlib-metadata = { version = "*", python = "<3.8" }
[tool.poetry.scripts]
bl = "binarylane.console.__main__:main"
[tool.poetry.group.dev.dependencies]
taskipy = "^1.10.3"
isort = "^5.10.1"
black = "^22.8.0"
pylint = "^2.15.2"
mypy = "^0.991"
types-python-dateutil = "^2.8.19"
pytest = "^7.2.0"
absolufy-imports = "^0.3.1"
binarylane-python-client = "^0.13.2a0"
safety = "^2.3.5"
[tool.taskipy.tasks]
generate = "python scripts/generate.py"
black = "black ."
isort = "isort ."
mypy = "mypy ."
pylint = "pylint src"
safety = "poetry export -f requirements.txt | safety check --bare --stdin"
test = "pytest tests"
check = "task isort && task black && task mypy && task pylint && task test && task safety"
[tool.isort]
py_version = 37
line_length = 120
profile = "black"
sections=['FUTURE', 'STDLIB', 'COMPAT', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER']
no_lines_before=["COMPAT"]
known_compat=["binarylane.pycompat"]
known_first_party=["binarylane"]
known_local_folder=["binarylane.console"]
add_imports=["from __future__ import annotations"]
[tool.black]
line-length = 120
target_version = ["py37"]
[tool.pylint.format]
max-line-length = 120
ignore-paths = ['src/binarylane/console/commands/*/']
[tool.pylint.messages_control]
disable = [
"import-outside-toplevel", # CLI programs need delayed import
"design", # design checker is too opinionated
"fixme", # FIXME: initial impl in progress
# Checkbox documentation is bad:
"missing-module-docstring",
"missing-class-docstring",
"missing-function-docstring",
]
[tool.mypy]
disallow_any_generics = true
disallow_untyped_defs = true
warn_redundant_casts = true
strict_equality = true
mypy_path = "lib:src"
namespace_packages = true
explicit_package_bases = true
[tool.pyright]
extraPaths = ["src", "lib"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"