Files
DECNET/ruff.toml
anti b2e4706a14
Some checks failed
CI / Lint (ruff) (push) Successful in 12s
CI / SAST (bandit) (push) Successful in 13s
CI / Dependency audit (pip-audit) (push) Successful in 22s
CI / Test (Standard) (3.11) (push) Failing after 54s
CI / Test (Standard) (3.12) (push) Successful in 1m35s
CI / Test (Live) (3.11) (push) Has been skipped
CI / Test (Fuzz) (3.11) (push) Has been skipped
CI / Merge dev → testing (push) Has been skipped
CI / Prepare Merge to Main (push) Has been skipped
CI / Finalize Merge to Main (push) Has been skipped
Refactor: implemented Repository Factory and Async Mutator Engine. Decoupled storage logic and enforced Dependency Injection across CLI and Web API. Updated documentation.
2026-04-12 07:48:17 -04:00

31 lines
807 B
TOML

# In your ruff.toml or pyproject.toml
target-version = "py314" # DECNET's target Python version
exclude = [
"tests/**",
"templates/**",
"development/**",
]
[lint]
# Select a wide range of rules
select = [
"F", # Pyflakes: Catches undefined names (F821) and unused variables (F841)
"ANN", # Enforces type annotations on functions and methods
"RUF", # Includes the RUF045 rule for dataclass attributes
"E", # Pycodestyle errors
"W", # Pycodestyle warnings
]
# Ignore specific rules that might be too strict for now
ignore = [
"E501", # Line too long
]
[lint.extend-per-file-ignores]
# Apply strict rules only to the core codebase
"decnet/**/*.py" = []
# Everywhere else is more relaxed
"**/*.py" = ["ANN", "RUF"]
"tests/**/*.py" = ["ANN", "RUF", "E", "W"]