-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
89 lines (77 loc) · 2.26 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[tool.poetry]
name = "python-easyverein"
version = "1.0.1"
description = "Python library to interact with the EasyVerein API"
authors = ["Daniel Herrmann <[email protected]>"]
readme = "README.md"
packages = [{ include = "easyverein" }]
[tool.poetry.dependencies]
python = "^3.10"
pydantic = "^2"
requests = "^2"
email-validator = "^2"
[tool.poetry.group.dev.dependencies]
sphinx = "^7"
sphinx-rtd-theme = "^2"
ruff = "*"
pytest = "^8"
pytest-dotenv = "^0"
mkdocs-material = "^9"
mkdocstrings = {extras = ["python"], version = "^0"}
pymdown-extensions = "^10.7"
pre-commit = "^3.6.0"
pytest-cov = "^5"
mypy = "^1.11.1"
ruff-lsp = "^0"
rich = "^13.7.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
target-version = "py37"
line-length = 120
fix = true
src = ["src"]
[tool.ruff.lint]
select = [
# https://docs.astral.sh/ruff/rules/#pyflakes-f
"F", # Pyflakes
# https://docs.astral.sh/ruff/rules/#pycodestyle-e-w
"E", # pycodestyle
"W", # Warning
# https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4
# https://docs.astral.sh/ruff/rules/#mccabe-c90
"C", # Complexity (mccabe+) & comprehensions
# https://docs.astral.sh/ruff/rules/#pyupgrade-up
"UP", # pyupgrade
# https://docs.astral.sh/ruff/rules/#isort-i
"I", # isort
]
ignore = [
# https://docs.astral.sh/ruff/rules/#pycodestyle-e-w
"E402", # module level import not at top of file
# https://docs.astral.sh/ruff/rules/#pyupgrade-up
"UP006", # use-pep585-annotation
"UP007", # use-pep604-annotation
"E741", # Ambiguous variable name
# "UP035", # deprecated-assertion
"PLE1205" # PLE1205 due to custom logger implementation
]
[tool.ruff.lint.mccabe]
max-complexity = 24
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.isort]
case-sensitive = true
detect-same-package = true
known-first-party = ["backend"]
[tool.ruff.lint.per-file-ignores]
# Ignore `E402` and `F401` (import violations) in all `__init__.py` files
"__init__.py" = ["E402", "F401"]
[tool.pytest.ini_options]
log_cli = true
log_cli_level = "INFO"
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
[tool.mypy]
disable_error_code = "import-untyped"