-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
executable file
·80 lines (68 loc) · 1.93 KB
/
pyproject.toml
File metadata and controls
executable file
·80 lines (68 loc) · 1.93 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
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "Q", "D"]
ignore = ["Q001", "Q002", "Q003", "D204", "D210", "D211", "D213", "D417", "D407", "D406"] # Ignore some docstring rules
unfixable = ["Q", "D"]
exclude = [
".git",
".ipynb_checkpoints",
".mypy_cache",
".history",
".pytest_cache",
".ruff_cache",
".venv",
"__pycache__",
"__pypackages__"
]
[tool.ruff]
line-length = 120
indent-width = 4
target-version = "py310"
[tool.ruff.lint.per-file-ignores]
"*.py" = ["D100", "D210", "D211", "D213", "D300", "D301", "E402"] # Ignore some docstring rules
[tool.ruff.format]
indent-style = "space"
quote-style = "preserve" # Preserve existing quotes instead of converting to single
docstring-code-format = true
docstring-code-line-length = 90
skip-magic-trailing-comma = true
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
multiline-quotes = "single"
docstring-quotes = "single"
avoid-escape = true
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.pydoclint]
ignore-one-line-docstrings = true
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = false
no_implicit_optional = true
strict_optional = true
follow_untyped_imports = true
# ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["*.test.py"]
disallow_untyped_defs = false
disallow_incomplete_defs = false
[tool.bandit]
exclude_dirs = [".venv", "__pycache__", "__tests__", ".history"]
skips = ["B101"]
[tool.pytest.ini_options]
testpaths = ["**/__tests__"]
python_files = ["test_*.py"]
addopts = "--alluredir=.allure-results"
norecursedirs = ["logs", ".venv", "__pycache__", ".pytest_cache", ".git"]
filterwarnings = [
"ignore::DeprecationWarning",
]