-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathruff.toml
38 lines (36 loc) · 1.57 KB
/
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
30
31
32
33
34
35
36
37
38
line-length = 120
lint.ignore-init-module-imports = true
lint.extend-select = ["E501", "F401"]
lint.select = [
"I", # isort
"D", # pydocstyle
"UP", # pyupgrade
"B", # flake8-bugbear
]
lint.ignore = [
"D100",
"D203",
"D211",
"D212",
"D400",
"D401",
"D407",
"D415",
"D205",
"B008",
]
# https://docs.astral.sh/ruff/rules/
# D100 undocumented-public-module Missing docstring in public module
# D203 one-blank-line-before-class 1 blank line required before class docstring
# D205 blank-line-after-summary 1 blank line required between summary line and description
# D211 blank-line-before-class No blank lines allowed before class docstring
# D212 multi-line-summary-first-line Multi-line docstring summary should start at the first line
# D400 ends-in-period First line should end with a period
# D401 non-imperative-mood First line of docstring should be in imperative mood: "{first_line}"
# D407 dashed-underline-after-section Missing dashed underline after section
# D415 ends-in-period First line should end with a period, question mark, or exclamation point
# B008 function-call-in-default-argument Do not perform function call {name} in argument defaults; instead, perform the call
# within the function, or read the default from a module-level singleton variable
[lint.per-file-ignores]
"__init__.py" = ["D100", "D101", "D102", "D104", "D105", "F401"]
"*/tests/*" = ["D100", "D101", "D102", "D103", "D104", "D105", "D107"]