-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
43 lines (39 loc) · 1.25 KB
/
Copy pathpyproject.toml
File metadata and controls
43 lines (39 loc) · 1.25 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
[tool.pyright]
typeCheckingMode = "strict"
reportDeprecated = "warning"
reportPrivateUsage = "warning"
include = ["apps", "commands", "projects"]
exclude = [".github", ".venv", "**/__pycache__"]
[tool.ruff]
preview = true
line-length = 127
target-version = "py312"
extend-include = ["*.md"]
[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 = ["ambiguous-unicode-character-docstring"]
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",
]