-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathruff.toml
More file actions
66 lines (56 loc) · 1.75 KB
/
Copy pathruff.toml
File metadata and controls
66 lines (56 loc) · 1.75 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
65
66
exclude = [
".ebextensions",
".git",
".idea",
".platform",
".pytest_cache",
".ruff_cache",
".tox",
"__pycache__",
"*-local.py",
"dist",
"fixtures",
"node_modules",
"public",
"src",
"venv"
]
extend-exclude = ["config/development-local.py"]
line-length = 150
indent-width = 4
# Python version
target-version = "py311"
[lint]
select = ['ALL']
# TODO: Ruff rules we want to enable
# C402, C403, C408, C417, PIE804, PLR5501, PLW2901, RET503, RET505, RET506, SIM102, SIM108, SIM115, UP028
# Rules to ignore
ignore = [
"ANN", "ANN202", "ARG001", "B023", "B904", "B905", "C401", "C402", "C403", "C408", "C416", "C417", "D10", "D203",
"D211", "D212", "D213", "DTZ", "E731", "EM101", "EM102", "FBT002", "FBT003", "FIX002", "FLY002", "G004", "ICN001",
"INP001", "PERF401", "PIE804", "PLC0206", "PLC0415", "PLC1802", "PLR1736", "PLR2004", "PLR5501", "PLW0603",
"PLW2901", "PTH", "Q000", "RET503", "RET505", "RET506", "RUF005", "RUF012", "S101", "S108", "S311", "S603", "S608",
"SIM102", "SIM108", "SIM115", "SIM401", "SLF001", "TD002", "TD003", "TRY003", "TRY201", "TRY300", "UP012", "UP015",
"UP028", "W605"
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[lint.pylint]
max-args = 21
max-branches = 15
max-statements = 60
[lint.mccabe]
max-complexity = 13
[format]
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[lint.per-file-ignores]
"bea/*" = [
"ARG", "B010", "B018", "C419", "C901", "ERA001", "PLE0704", "PLR091", "PLR1704", "PT026", "Q004", "RUF", "SIM",
"TD004", "TRY", "UP"
]