-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
64 lines (57 loc) · 1.69 KB
/
Copy pathruff.toml
File metadata and controls
64 lines (57 loc) · 1.69 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
55
56
57
58
59
60
61
62
63
64
# ruff.toml Unified Python linter + formatter for void-filter repos
# Replaces: pylint, pycodestyle, pydocstyle, flake8, black, isort
# Docs: https://docs.astral.sh/ruff/
[lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort (import ordering)
"N", # pep8-naming
"D", # pydocstyle
"UP", # pyupgrade
"S", # bandit (security)
"B", # bugbear
"A", # builtins shadowing
"C4", # comprehensions
"DTZ", # datetime timezone
"T10", # debugger
"ISC", # implicit string concat
"PIE", # misc lints
"PT", # pytest style
"RSE", # raise
"RET", # return
"SIM", # simplify
"TCH", # type checking
"ARG", # unused arguments
"ERA", # dead code (commented out)
"PL", # pylint equivalents
"RUF", # ruff-specific
]
ignore = [
"D401", # pydocstyle: imperative mood (inaccurate checker)
"D301", # pydocstyle: escape sequences
"E402", # module level import not at top
"S101", # assert usage (OK in tests)
"PLR0913", # too many arguments (we allow up to 8)
"D100", # missing module docstring (too noisy for small files)
"D104", # missing package docstring
]
[lint.per-file-ignores]
"tests/**" = ["S101", "D103", "ARG001"]
"**/test_*.py" = ["S101", "D103", "ARG001"]
[lint.pydocstyle]
convention = "google"
[lint.isort]
known-first-party = ["bundler", "unbundler", "common"]
[format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"
line-length = 132
target-version = "py310"
[lint.pylint]
max-args = 8
max-branches = 12
max-returns = 6
max-statements = 50