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

Switch to ruff for linting #12073

Merged
merged 6 commits into from
Jun 6, 2023
Merged

Switch to ruff for linting #12073

merged 6 commits into from
Jun 6, 2023

Conversation

pfmoore
Copy link
Member

@pfmoore pfmoore commented Jun 5, 2023

Fixes #12072

@pfmoore pfmoore added the skip news Does not need a NEWS file entry (eg: trivial changes) label Jun 5, 2023
@pfmoore
Copy link
Member Author

pfmoore commented Jun 5, 2023

I don't think this needs a NEWS entry, but if anyone wants me to add one, just say.

I'll add a follow-up commit here to replace isort as well once the initial CI checks have completed.

pyproject.toml Outdated
Comment on lines 78 to 79
".nox",
".tox",
Copy link
Contributor

@q0w q0w Jun 5, 2023

Choose a reason for hiding this comment

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

its by default excluded https://beta.ruff.rs/docs/settings/#exclude
it should be extend-exclude (?)

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks. I got this by running flake8-to-ruff and didn't change much from what it suggested. I'll fix this.

tests/lib/__init__.py Outdated Show resolved Hide resolved
@pfmoore pfmoore merged commit 72a32e9 into pypa:main Jun 6, 2023
24 checks passed
@pfmoore pfmoore deleted the ruff branch June 6, 2023 08:52
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
skip news Does not need a NEWS file entry (eg: trivial changes)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider switching to ruff for linting
3 participants