-
Notifications
You must be signed in to change notification settings - Fork 138
Expand file tree
/
Copy pathruff.toml
More file actions
54 lines (49 loc) · 1.52 KB
/
ruff.toml
File metadata and controls
54 lines (49 loc) · 1.52 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
line-length = 120
exclude = ["sample/*", "docs/*"]
[lint]
# https://docs.astral.sh/ruff/rules/
select = [
"A", # flake8-builtins
"ANN", # flake8-annotations-complexity
"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
"ANN003", # Missing type annotation for kwargs
"RUF100", # Unused noqa directive (version-dependent on ruff and not deterministic)
]
pydocstyle.convention = "google"
[lint.per-file-ignores]
"{tests}/*" = [
"D", # pydocstyle
"INP", # flake8-no-pep420
"ANN", # flake8-annotations-complexity
]
"{devtools}/*" = [
"D", # pydocstyle
"INP", # flake8-no-pep420
"F401", # unused import
"ANN", # flake8-annotations-complexity
]
[format]
preview = true
docstring-code-format = false
docstring-code-line-length = "dynamic"