Skip to content

Enable Ruff flake8-pie (PIE)#13747

Merged
srittau merged 2 commits into
python:mainfrom
Avasam:Enable-Ruff-flake8-pie-(PIE)
Apr 2, 2025
Merged

Enable Ruff flake8-pie (PIE)#13747
srittau merged 2 commits into
python:mainfrom
Avasam:Enable-Ruff-flake8-pie-(PIE)

Conversation

@Avasam

@Avasam Avasam commented Mar 31, 2025

Copy link
Copy Markdown
Collaborator

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.

@github-actions

This comment has been minimized.

@srittau srittau left a comment

Copy link
Copy Markdown
Collaborator

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

Avasam commented Apr 1, 2025

Copy link
Copy Markdown
Collaborator Author

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

brianschubert commented Apr 1, 2025

Copy link
Copy Markdown
Collaborator

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

Possibly about PIE810?

@github-actions

github-actions Bot commented Apr 2, 2025

Copy link
Copy Markdown
Contributor

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
@Avasam Avasam deleted the Enable-Ruff-flake8-pie-(PIE) branch April 2, 2025 07:07
mmingyu pushed a commit to mmingyu/typeshed that referenced this pull request May 16, 2025
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