-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
74 lines (64 loc) · 1.91 KB
/
pyproject.toml
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
[tool.poetry]
name = "binarylane-cli"
version = "0.17.0"
description = ""
authors = ["Nathan O'Sullivan <[email protected]>"]
readme = "README.md"
packages = [{include = "binarylane", from = "src"}, {include = "binarylane", from = "lib" }]
[tool.poetry.dependencies]
python = "^3.8.1"
terminaltables = "^3.1.10"
httpx = "^0.23.0"
attrs = "^22.2.0"
python-dateutil = "^2.8.2"
[tool.poetry.scripts]
bl = "binarylane.console.__main__:main"
[tool.poetry.group.dev.dependencies]
taskipy = "^1.10.3"
mypy = "*"
types-python-dateutil = "^2.8.19"
pytest = "^7.2.0"
absolufy-imports = "^0.3.1"
binarylane-python-client = "^0.13.2a0"
safety = "<3.0.0"
ruff = "^0.9.6"
[tool.taskipy.tasks]
generate = "python scripts/generate.py"
format = "ruff format ."
isort = "ruff check --select I . --fix"
mypy = "mypy ."
ruff = "ruff check src"
safety = "poetry export -f requirements.txt | safety check --bare --stdin"
test = "pytest tests"
check = "task isort && task format && task mypy && task ruff && task test && task safety"
[tool.ruff]
# Always generate Python 3.8-compatible code.
target-version = "py38"
line-length = 120
exclude = [
"api", # generated command classes
".venv"
]
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "TC", "PL", "I"]
ignore = ["PLR"]
[tool.ruff.lint.isort]
section-order = ["future", "standard-library", "compat", "third-party", "first-party", "local-folder"]
no-lines-before = ["compat"]
sections = { "compat" = ["binarylane.pycompat"] }
known-first-party = ["binarylane"]
known-local-folder = ["binarylane.console"]
required-imports = ["from __future__ import annotations"]
[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"