Skip to content

chore: enable ruff rules disabled during template sync #6

@endavis

Description

@endavis

Chore Type

Tooling improvements

Description

During the pyproject-template sync (#2, PR #5), several ruff rules were added to the ignore list to allow existing code to pass. These should be addressed to fully adopt the template's stricter linting standards.

Rules to enable

Rule Description Est. Errors Priority
ANN Type annotations (flake8-annotations) ~1349 High
N Naming conventions (pep8-naming) ~20 Medium
E501 Line too long (>100 chars) ~162 Low
SIM108 Use ternary operator ~4 Low
B019 lru_cache on methods ~3 Low

Proposed Changes

  1. Enable one rule at a time
  2. Fix errors or add targeted per-file-ignores
  3. Create separate PRs for each rule

Success Criteria

  • ANN rule enabled (or per-file-ignores added)
  • N rule enabled
  • E501 rule enabled
  • SIM108 rule enabled
  • B019 addressed (fix or document why ignored)
  • doit check passes with all rules enabled

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    choreMaintenance, tooling, CI tasks

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions