Skip to content

Ruff ignore list is too long #634

@tobixen

Description

@tobixen

From pyproject.toml ...

ignore = [
    "E501",    # Line too long (formatter handles this)
    "E402",    # Module level import not at top of file (common with conditional imports)
    "E721",    # Type comparisons (isinstance is not always better)
    "E722",    # Bare except (TODO: fix these gradually)
    "E731",    # Lambda assignments (sometimes clearer than def)
    "B007",    # Unused loop variable (often intentional)
    "B011",    # assert False (used as unreachable markers)
    "B018",    # Useless expression (often intentional in tests)
    "B026",    # Star-arg after keyword (legacy pattern)
    "B028",    # stacklevel in warnings (not critical)
    "B904",    # raise from (TODO: fix gradually)
    "F401",    # Unused imports (many are for re-export or conditional)
    "F403",    # Star imports (legacy, TODO: fix gradually)
    "F821",    # Undefined names (often in TYPE_CHECKING blocks or docstrings)
    "F841",    # Unused variables (often intentional, e.g. unpacking)
    "UP007",   # Optional[X] vs X | None (used in try/except for backwards compat)
    "UP008",   # super() style (existing code uses explicit form)
    "UP031",   # %-format (existing code uses it extensively)
    "UP036",   # Outdated version blocks (will clean up when dropping old Python)
    "UP045",   # X | None vs Optional (both are fine)
]

We should try to reduce this. A shame I forgot about it before the v3.0-release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions