Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
79 lines (70 loc) · 2.11 KB
/
Copy pathpyproject.toml
File metadata and controls
79 lines (70 loc) · 2.11 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
67
68
69
70
71
72
73
74
75
76
77
78
79
[tool.ruff]
line-length = 176
target-version = "py314"
exclude = [
".git",
"tests",
"__pycache__",
".pytest_cache",
".ruff_cache",
"tmp",
]
[tool.ruff.lint]
select = [
# Core correctness
"E", # pycodestyle errors
"F", # Pyflakes (logical and syntax errors)
"W", # pycodestyle warnings
"B", # flake8-bugbear (likely bugs and design issues)
# Imports & modernization
"I", # isort (import sorting)
"UP", # pyupgrade (code modernization)
# Code quality & safety
"C4", # flake8-comprehensions (better list/dict/set comprehension syntax)
"SIM", # flake8-simplify (code simplification suggestions)
"PERF", # Perflint (performance anti-patterns detection)
"ARG", # flake8-unused-arguments (unused function arguments)
"RUF", # Ruff-specific rules and lints
"S", # flake8-bandit (security testing and checks)
"PTH", # flake8-use-pathlib (encourage pathlib over os.path)
"N", # pep8-naming (naming conventions alignment)
"RET", # flake8-return (return statement check)
# Dates & time
"DTZ", # flake8-datetimez (prevent timezone-naive datetime usage)
# Async (if applicable)
"ASYNC", # flake8-async (concurrency and async checks)
]
ignore = [
"ASYNC240", # Blocking pathlib methods in async functions
"E501", # Line too long (line length violations)
"S314", # Using vulnerable xml.etree.ElementTree for XML parsing
]
[tool.ruff.lint.per-file-ignores]
"upload.py" = ["E402"]
"src/trackers/UNIT3D/UNIT3D_TEMPLATE.py" = ["N999"]
[tool.ruff.lint.isort]
known-first-party = ["data", "src", "web_ui"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
[tool.pyright]
pythonVersion = "3.14"
typeCheckingMode = "standard"
reportMissingImports = true
reportMissingTypeStubs = false
reportUnknownMemberType = true
reportUnknownVariableType = true
exclude = [
"tests",
"data",
"tmp",
"**/__pyrefly_virtual__/**",
"**/node_modules",
"**/__pycache__",
"**/.*",
]
[tool.pyrefly]
disable-search-path-heuristics = true
search-path = ["."]
project-excludes = [
"**/__pyrefly_virtual__/**",
"**/tmp/**"
]