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 flake8-pie (PIE) #13747

Merged
merged 2 commits into from
Apr 2, 2025
Merged

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented Mar 31, 2025

Ref #13295
See the rules: flake8-pie (PIE)

A mix of rules that apply to stubs and sometimes only scripts. Almost all autofixable. All the rules looks like rules we'd want.

This comment has been minimized.

Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

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

Didn't realize startswith takes a tuple.

@Avasam
Copy link
Collaborator Author

Avasam commented Apr 1, 2025

Didn't realize startswith takes a tuple.

I'm not sure how that relates to this PR. Are you commenting on the right PR?

Edit: multiple-starts-ends-with (PIE810)

@brianschubert
Copy link
Contributor

brianschubert commented Apr 1, 2025

I'm not sure how that relates to this PR.

Possibly about PIE810?

Copy link
Contributor

github-actions bot commented Apr 2, 2025

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau srittau merged commit aaf1e03 into python:main Apr 2, 2025
60 checks passed
@Avasam Avasam deleted the Enable-Ruff-flake8-pie-(PIE) branch April 2, 2025 07:07
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