-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
39 lines (34 loc) · 1.12 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
[tool.ruff]
src = ["api"]
[tool.ruff.lint]
# Default for `select` is ["E4", "E7", "E9", "F"]
# All additional rules must be added using `extend-select`.
extend-select = [
"UP", # pyupgrade, https://docs.astral.sh/ruff/rules/#pyupgrade-up
"D", # pydocstyle, https://docs.astral.sh/ruff/rules/#pydocstyle-d
"I", # isort, https://docs.astral.sh/ruff/rules/#isort-i
]
ignore = [
"D1", # D1xx: we do not want to force contributors to write redundant or useless docstrings
"D202", # D202: additional whitespace helps with readability
"D205", # D205: we don't want to always require a single line summary
"D211", # D211: same as D202
"D400", # D400: first line doesn't need to end in a period
]
[tool.ruff.lint.per-file-ignores]
"*test*" = ["E501"] # Tests should have long, descriptive names.
"*__init__*" = ["F401"] # Init files usually have unused imports.
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.ruff.lint.isort]
lines-after-imports = 2
section-order = [
"future",
"standard-library",
"django",
"third-party",
"first-party",
"local-folder",
]
[tool.ruff.lint.isort.sections]
django = ["django"]