-
-
Notifications
You must be signed in to change notification settings - Fork 186
Expand file tree
/
Copy pathpyproject.toml
More file actions
70 lines (65 loc) · 1.44 KB
/
pyproject.toml
File metadata and controls
70 lines (65 loc) · 1.44 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
[build-system]
# Modern Python packaging baseline for 2026.
# This keeps the current setup.py workflow working,
# but allows modern tools like `pip`, `build`, and PyPI backends
# to treat the project as a standard PEP 517/518 package.
requires = [
"setuptools>=82.0.1",
"wheel>=0.47.0"
]
build-backend = "setuptools.build_meta"
[tool.ruff]
line-length = 120
target-version = "py312"
src = ["src", "tests"]
extend-exclude = [
".venv",
".docs-venv",
"build",
"dist",
"examples",
"htmlcov",
"site",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # Pyflakes: undefined names, unused imports, unused variables
"W", # pycodestyle warnings
"B", # bugbear: likely bugs
]
ignore = [
"E501", # legacy line length debt; clean separately
"E721", # legacy type comparisons; clean separately
"E722", # legacy bare except; clean separately
"F632", # legacy literal comparison; clean separately
# Legacy bugbear/style debt; keep advisory for now.
"B009",
"B010",
"B017",
"B026",
"B904",
"B905",
]
[tool.ruff.lint.per-file-ignores]
"src/**/__init__.py" = [
"F401", # package-level re-exports / public aliases
]
"tests/**/*.py" = [
"ARG001",
"ARG002",
"ARG005",
]
"benchmarks/**/*.py" = [
"B009",
"B010",
"RET501",
"SIM108",
]
".github/**/*.py" = [
"ARG001",
"ARG002",
"ARG005",
]
[tool.ruff.format]
docstring-code-format = true