Skip to content

chore(lint): enforce type annotations using ruff instead of in mypy#3061

Merged
mkoura merged 1 commit intomasterfrom
ruff_check_type_annotations
May 27, 2025
Merged

chore(lint): enforce type annotations using ruff instead of in mypy#3061
mkoura merged 1 commit intomasterfrom
ruff_check_type_annotations

Conversation

@mkoura
Copy link
Collaborator

@mkoura mkoura commented May 27, 2025

  • Add "ANN" (type annotation) checks to ruff linting, except for test, framework, and docs files.
  • Ignore ANN401 for ruff to allow untyped self/cls.
  • Remove mypy per-file overrides for untyped defs in tests and framework.
  • Add explicit return types to init methods in resource and clusterlib.

- Add "ANN" (type annotation) checks to ruff linting, except for test,
  framework, and docs files.
- Ignore ANN401 for ruff to allow untyped self/cls.
- Remove mypy per-file overrides for untyped defs in tests and framework.
- Add explicit return types to __init__ methods in resource and clusterlib.
@mkoura mkoura requested a review from saratomaz as a code owner May 27, 2025 13:07
@mkoura mkoura merged commit 8366607 into master May 27, 2025
3 checks passed
@mkoura mkoura deleted the ruff_check_type_annotations branch May 27, 2025 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant