-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
43 lines (37 loc) · 1 KB
/
Copy pathruff.toml
File metadata and controls
43 lines (37 loc) · 1 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
line-length = 100
indent-width = 4
target-version = "py312"
[lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"S", # flake8-bandit (security)
"PLR", # pylint refactor
"C901", # mccabe complexity
]
ignore = ["S101", "B008", "S603"] # assert in tests, Depends, subprocess
[lint.mccabe]
max-complexity = 18
[lint.pylint]
max-args = 10
max-statements = 65
max-branches = 20
max-returns = 12
[lint.per-file-ignores]
"tests/**" = ["PLR2004", "S101", "S607", "S110", "S608"]
"**/tests/**" = ["PLR2004", "S101", "S607", "S110", "S608"]
"shared/tests/**" = ["PLR2004", "S101"]
"alembic/**" = ["F401"]
".claude/skills/**" = ["E501", "C901", "PLR", "S607", "S603", "S101", "C4", "F841"]
[lint.isort]
combine-as-imports = true
force-sort-within-sections = true
known-first-party = ["src"]
[format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"