Skip to content

Enable Ruff ANN401 checks #1406

Description

@coderabbitai

Summary

Enable Ruff rule ANN401 in the repository configuration.

Rationale

The rule detected typing.Any in parameter annotations in tests/test_janitor.py. The check is not currently enabled, so it cannot prevent similar annotations in future changes.

Affected areas

  • Ruff configuration
  • Python type annotations, including tests/test_janitor.py

Required changes

Enable ANN401, or the relevant Ruff annotation rule set that includes it, in the project lint configuration. Confirm that the configured checks run in the standard lint workflow.

Acceptance criteria

  • Ruff reports ANN401 for parameters annotated as typing.Any.
  • The repository lint configuration enables the rule.
  • The standard lint workflow executes the enabled rule.

Backlinks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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