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

Apply flake8-pyi autofixes #340

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Avasam
Copy link
Contributor

@Avasam Avasam commented Nov 8, 2024

(based on #339, so merge that one first) Done

I added PYI to Ruff's select. https://docs.astral.sh/ruff/rules/#flake8-pyi-pyi
Then run ruff check --fix --preview: Found 1776 errors (967 fixed, 809 remaining).
Then ignore the checks still failing to keep this PR to automated fixes only. (because Ruff has no config to set as warning: astral-sh/ruff#1256)

Note that flake8-future-annotations (FA) was already passing on main, so I just included it.

pyproject.toml Outdated
Comment on lines 41 to 58
"PYI019", # Request for autofix: https://github.com/astral-sh/ruff/issues/14183
"PYI021", # Request for autofix: https://github.com/astral-sh/ruff/issues/14123
"PYI024",
"PYI034", # Request for autofix: https://github.com/astral-sh/ruff/issues/14184
"PYI041", # Request for autofix: https://github.com/astral-sh/ruff/issues/14185
"PYI044", # Request for autofix: https://github.com/astral-sh/ruff/issues/14186
"PYI048",
"PYI051", # Request for autofix: https://github.com/astral-sh/ruff/issues/14185
"PYI052",
"PYI062", # Request for autofix: https://github.com/astral-sh/ruff/issues/14187
Copy link
Contributor Author

@Avasam Avasam Nov 8, 2024

@Avasam Avasam force-pushed the apply-flake8-pyi-autofixes branch 2 times, most recently from c5b0e57 to 75fc33c Compare November 8, 2024 04:32
@Avasam Avasam marked this pull request as ready for review November 10, 2024 19:40
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