Skip to content

Fix ruff warnings - #43751

Closed
cyyever wants to merge 3 commits into
huggingface:mainfrom
cyyever:ruff_fix2026
Closed

cyyever wants to merge 3 commits into
huggingface:mainfrom
cyyever:ruff_fix2026

Conversation

@cyyever

@cyyever cyyever commented Feb 5, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Fix more warnings in ruff 0.15 from existing enabled rules. Almost all changes are about turning if A then A else B into A or B.

Signed-off-by: cyy <cyyever@outlook.com>
@github-actions

Copy link
Copy Markdown
Contributor

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

run-slow: clap, depth_anything, efficientloftr, marian, musicgen_melody, paligemma, prompt_depth_anything, whisper

@ArthurZucker

Copy link
Copy Markdown
Collaborator

Thanks for the cleanup, @cyyever! 17 of the 40 files in this diff (the examples/pytorch/ scripts) were removed from main in #49357, so this can't land as is; closing. If ruff still reports these warnings on main, a fresh PR against current files would be welcome.

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