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
Ignored PYI021 to deal with it in its own PR
Then run ruff check --fix --preview: Found 1700 errors (1074 fixed, 626 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 Show resolved Hide resolved
@Avasam Avasam force-pushed the apply-flake8-pyi-autofixes branch 3 times, most recently from 75fc33c to 4f2c818 Compare November 10, 2024 19:40
@Avasam Avasam marked this pull request as ready for review November 10, 2024 19:40
@Avasam Avasam force-pushed the apply-flake8-pyi-autofixes branch 2 times, most recently from ce565eb to 60cea37 Compare November 22, 2024 19:06
@Avasam Avasam force-pushed the apply-flake8-pyi-autofixes branch 2 times, most recently from 9f58676 to 43de54a Compare November 22, 2024 19:07
Comment on lines +45 to +57
# TODO: Handle in its own PR
"PYI021", # https://github.com/microsoft/python-type-stubs/pull/343

# TODO: Investigate and fix or configure
"PYI001",
"PYI002",
"PYI017",
"PYI019", # Request for more autofixes: https://github.com/astral-sh/ruff/issues/14183
"PYI024",
"PYI048",
"PYI051", # Request for autofix: https://github.com/astral-sh/ruff/issues/14185
"PYI052",
"PYI061", # Request for more autofixes: https://github.com/astral-sh/ruff/issues/14537
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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