-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruff.toml
29 lines (24 loc) · 643 Bytes
/
ruff.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
# Support Python 3.10+
target-version = "py310"
# In addition to the default formatters/linters, add these as well.
[lint]
extend-select = [
# Add the `line-too-long` rule to the enforced rule set.
"E501",
# Add rule that all functions have docstrings.
"D",
# Add isort to list.
"I"
]
# Ignore missing docstring at the top of files
ignore = ["D100"]
# Ignore Django migration files
exclude = ["**/migrations/*.py"]
[lint.pydocstyle]
convention = "google"
[format]
docstring-code-format = true
[lint.per-file-ignores]
# ignore "Module imported but unused" error in all init files
"__init__.py" = ["F401"]
"**/tests/*" = ["D"]