-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
50 lines (45 loc) · 2 KB
/
pyproject.toml
File metadata and controls
50 lines (45 loc) · 2 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
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN101", # Missing type annotation for self (handled by class definition)
"ANN204", # Missing return type for __init__ (always returns None)
"COM812", # Trailing comma (conflicts with formatter)
"D212", # Multi-line docstring summary start (conflicts with formatter)
"D213", # Multi-line docstring summary start (conflicts with formatter)
"EM102", # f-string in exception class (acceptable for dynamic error context)
"T201", # Allow print() (Standard for CLI applications and quick scripts)
"RUF001", # Allow ambiguous cyrillic characters in strings
"RUF002", # Allow ambiguous cyrillic characters in docstrings
"RUF003", # Allow ambiguous cyrillic characters in comments
"S605", # Start process with a shell: check for injection
"S607", # Start process with a partial path
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101", # Use of assert detected
"SLF001", # Accessing private members (necessary for testing internals)
"T201", # Allow print() for local debugging in test files
"ANN201", # Missing return type for test functions
"PLR2004", # Magic value used in comparison (expected in assertions)
"D100", # Missing docstring in public module
"D103", # Missing docstring in public function (tests are self-documenting)
"D104", # Missing docstring in __init__.py
"ARG001", # Unused function argument (common with pytest fixtures)
"PT011", # Broad ValueError is fine in tests
"PLC0415", # Local imports for cache clearing/mocking are fine
"BLE001", # Allow catching broad exceptions in test assertions
"PLR0913", # Allow many arguments (mocks/fixtures) in tests
]
[tool.pytest.ini_options]
pythonpath = ["."]
testpaths = ["tests"]
[tool.ruff.lint.pylint]
max-args = 7