Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Ruff ANN2 (flake8-annotations, autofixes only) #13331

Merged
merged 4 commits into from
Jan 2, 2025

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented Dec 29, 2024

Ref #13295
https://docs.astral.sh/ruff/rules/#flake8-annotations-ann

When writing scripts and tests, I often forget to include the return type of functions.
Due to the way our mypy configs are currently setup, that doesn't show up in my editor.

This PR solves that (missing return types in non-stubs files show up in editor) and single-file statically analysable cases can be autofixed.

@AlexWaygood AlexWaygood changed the title Enable Ruff ANN2 (falke8-annotations, autofixes only) Enable Ruff ANN2 (flake8-annotations, autofixes only) Dec 29, 2024
@AlexWaygood AlexWaygood merged commit e02e7ad into python:main Jan 2, 2025
46 checks passed
@Avasam Avasam deleted the Ruff-ANN branch January 2, 2025 17:01
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.

3 participants