38 lines
894 B
TOML
38 lines
894 B
TOML
target-version = "py312"
|
|
line-length = 120
|
|
src = [
|
|
"src"
|
|
]
|
|
exclude = [
|
|
"**/__pycache__",
|
|
"**/node_modules",
|
|
"**/.*",
|
|
".venv",
|
|
]
|
|
|
|
[lint]
|
|
select = [
|
|
"A", # Builtin shadowing
|
|
"B", # Common bug patterns
|
|
"S", # Security checks
|
|
"C4", # Comprehension cleanup
|
|
"DTZ", # Timezone mistakes
|
|
"PIE", # Redundant or unnecessary code
|
|
"PLE", # Pylint error checks
|
|
"I", # Import sorting
|
|
"E4", "E7", "E9", # Core style and syntax errors
|
|
"F", # Undefined names, unused imports, etc.
|
|
"UP", # Modern Python syntax
|
|
"RUF100", # Unused noqa comments
|
|
]
|
|
ignore = []
|
|
|
|
[lint.per-file-ignores]
|
|
"tests/**/*.py" = ["S101"] # Allow pytest assertions
|
|
|
|
[format]
|
|
quote-style = "double"
|
|
indent-style = "space"
|
|
line-ending = "native"
|
|
skip-magic-trailing-comma = false
|