-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathruff.toml
40 lines (38 loc) · 1.1 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
39
40
line-length = 120
exclude = ["sample/*"]
[lint]
# https://docs.astral.sh/ruff/rules/
select = [
"A", # flake8-builtins
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"D", # pydocstyle
"EM", # flake8-errmsg
"F", # Pyflakes
"I", # isort
"INP", # flake8-no-pep420
"N", # pep8-naming
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"UP", # pyupgrade
]
ignore = [
"D203", # No blank lines between a section header and its content
"D205", # 1 blank line required between summary line and description
"D212", # Multi-line docstring summary should start at the first line
"D400", # First line should end with a period
"D401", # First line should be in imperative mood
"D415", # First line should end with a period, question mark, or exclamation point
]
[lint.per-file-ignores]
"{devtools}/*" = [
"D", # pydocstyle
"INP", # flake8-no-pep420
]
[format]
preview = true
docstring-code-format = false
docstring-code-line-length = "dynamic"