Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Enable flake8-pie rules#41794

Open
cyyever wants to merge 5 commits into
huggingface:mainfrom
cyyever:pie_fixes2
Open

Enable flake8-pie rules#41794
cyyever wants to merge 5 commits into
huggingface:mainfrom
cyyever:pie_fixes2

Conversation

@cyyever

@cyyever cyyever commented Oct 22, 2025

Copy link
Copy Markdown
Contributor

What does this PR do?

This PR enables all flake8-pie rules in ruff. These rules are:

PIE790   Unnecessary pass statement
PIE794   Class field {name} is defined multiple times 
PIE796   Enum contains duplicate value: {value}  
PIE800   Unnecessary spread ** 
PIE804   Unnecessary dict kwargs  
PIE807   Prefer {container} over useless lambda 
PIE808   Unnecessary start argument in range  
PIE810   Call {attr} once with a tuple   

@Rocketknight1

Copy link
Copy Markdown
Member

Adding more ruff rules so cc core maintainer @ArthurZucker

@Rocketknight1

Copy link
Copy Markdown
Member

gentle ping core maintainers @Cyrilvallez @ArthurZucker, since it's adding more ruff rules!

@cyyever cyyever force-pushed the pie_fixes2 branch 7 times, most recently from 5eb72f1 to 34d3f4b Compare November 20, 2025 08:07
Signed-off-by: Yuanyuan Chen <[email protected]>
Signed-off-by: Yuanyuan Chen <[email protected]>
Signed-off-by: Yuanyuan Chen <[email protected]>
Signed-off-by: Yuanyuan Chen <[email protected]>
@github-actions

github-actions Bot commented Jan 1, 2026

Copy link
Copy Markdown
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: bert, bertweet, big_bird, clap, conditional_detr, convbert, detr, funnel, glm46v, glm4v, glm4v_moe, gpt_neo, gpt_sw3, instructblipvideo, internvl, layoutxlm

Signed-off-by: Yuanyuan Chen <[email protected]>
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.

2 participants