-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
36 lines (33 loc) · 1.04 KB
/
Copy pathpyproject.toml
File metadata and controls
36 lines (33 loc) · 1.04 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
[tool.ruff]
line-length = 127
target-version = "py312"
[tool.ruff.format]
skip-magic-trailing-comma = false
[tool.ruff.lint]
select = [
"B", # flake8-bugbear (finds likely bugs & design problems)
"C4", # flake8-comprehensions (helps write better comprehensions)
"C90", # mccabe complexity (checks cyclomatic complexity)
"E", # pycodestyle errors (checks PEP 8 style errors)
"F", # pyflakes (checks for logical errors)
"I", # isort (sorts imports)
"RUF", # Ruff-specific linting rules
"SIM", # flake8-simplify (helps simplify code)
"TCH", # flake8-type-checking (manages type-checking imports)
"UP", # pyupgrade (upgrades syntax for newer Python versions)
"W", # pycodestyle warnings (checks PEP 8 style warnings)
]
ignore = [
"RUF002", # Docstring contains ambiguous character.
]
mccabe = { max-complexity = 12 }
[tool.ruff.lint.isort]
split-on-trailing-comma = false
no-lines-before = ["first-party", "third-party"]
section-order = [
"future",
"local-folder",
"standard-library",
"first-party",
"third-party",
]