Skip to content

Ruff linting scoped only to UP rules #472

Description

@SemTiOne

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions