Skip to content

chore: audit F401 noqa suppressions -- genuine re-exports vs dead code #1003

@sergio-sisternes-epam

Description

@sergio-sisternes-epam

Context

PR #999 added # noqa: F401 directives to preserve existing import patterns when enabling Ruff's F401 (unused import) rule. Many of these are intentional re-exports (e.g., __init__.py barrels), but some may be genuinely dead code.

Scope

# Current count
grep -r "# noqa: F401" src/ | wc -l    # ~388 suppressions

Task

  1. Audit each # noqa: F401 in src/ to classify as:
    • Re-export (intentional): keep the # noqa: F401 or convert to __all__ declaration
    • Dead import (unused): remove the import and the noqa directive
  2. For genuine re-exports, consider using Ruff's [tool.ruff.lint.isort] known-first-party or __all__ patterns to make intent explicit
  3. Test files (tests/) can be audited separately -- most F401 there are fixture imports or mock targets

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/cliCLI command surface, flags, help text (cross-cutting).priority/lowAccepted but not time-sensitivestatus/acceptedDirection approved, safe to start work.status/triagedInitial agentic triage complete; pending maintainer ratification (silence = approval).tech-debttype/refactorInternal restructure, no behavior change.

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions