-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (67 loc) · 1.76 KB
/
pyproject.toml
File metadata and controls
77 lines (67 loc) · 1.76 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
# This file is not used for an actual Python package. It is used for tools, e.g. linters, formatters, pytest, etc.
[tool.pytest.ini_options]
markers = ["slow: marks tests as slow (deselect with '-m \"not slow\"')"]
[tool.black]
line-length = 119
# regular expression ignoring multiple patterns separated by '|' and newlines
exclude = '''
/(
\.venv
| venv
)/
'''
[tool.flake8]
docstring-convention = "all"
ignore = [
"D107",
"D212",
"E501",
"W503",
"W605",
"D203",
"D100",
# D104: Missing docstring in public package
"D104",
# D103: Missing docstring in public function
"D103",
# D102: Missing docstring in public method
"D102",
# D101: Missing docstring in public class
"D101",
# B008: Do not perform calls in argument defaults, used in `Depends(get_settings)`
"B008",
]
exclude = ["venv"]
max-line-length = 119
# radon
radon-max-cc = 10
[tool.isort]
profile = "black"
line_length = 119
# stack imports onto separate lines to minimize chance of merge conflicts from editing the same line
multi_line_output = "VERTICAL_HANGING_INDENT"
force_grid_wrap = 2
[tool.pylint."messages control"]
disable = [
"line-too-long",
"trailing-whitespace",
"missing-function-docstring",
"consider-using-f-string",
"import-error",
"too-few-public-methods",
"redefined-outer-name",
"missing-class-docstring",
"missing-module-docstring",
]
[tool.ruff]
# Enable flake8-bugbear (`B`) rules.
select = ["E", "F", "B", "ERA"]
# Never enforce `E501` (line length violations).
ignore = ["E501", "F401"]
# Avoid trying to fix flake8-bugbear (`B`) violations.
unfixable = ["B"]
line-length = 119
# Ignore `E402` (import violations) in all `__init__.py` files, and in `path/to/file.py`.
[tool.ruff.per-file-ignores]
"__init__.py" = ["E402"]
"path/to/file.py" = ["E402"]