Summary
pyproject.toml:81 selects only ["UP"] for ruff. Flake8 in pre-commit covers E9,F63,F7,F82 but not pyflakes (F), bugbear (B), bandit security (S), or isort (I).
Problem
Security patterns like assert in production code, hardcoded credentials, and unused imports slip through. Flake8 and ruff overlap on some rules but leave gaps on others.
Suggested fix
Expand ruff select:
select = ["UP", "F", "B", "S", "I"]
Run ruff check ., fix findings, then consider dropping the flake8 pre-commit hook since ruff covers it.
Files involved
- pyproject.toml (line 81)
- .pre-commit-config.yaml (flake8 hook)
Summary
pyproject.toml:81 selects only
["UP"]for ruff. Flake8 in pre-commit coversE9,F63,F7,F82but not pyflakes (F), bugbear (B), bandit security (S), or isort (I).Problem
Security patterns like
assertin production code, hardcoded credentials, and unused imports slip through. Flake8 and ruff overlap on some rules but leave gaps on others.Suggested fix
Expand ruff select:
Run
ruff check ., fix findings, then consider dropping the flake8 pre-commit hook since ruff covers it.Files involved