Repository navigation
fix: clear the 24 ruff errors on main - #980
Merged
Merged
Conversation
mlir_jit.jit_compile_and_run deleted func_name and then read it when shape_replacements was set, raising NameError. Keep func_name. The rest are unused imports, an unused exception binding, and one-line compound statements in mlir_canonicalize and mlir_generator. Comments in the touched files lose their em dashes so the commit hook passes.
This was referenced Sep 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ruff check src on main reported 24 errors, which fail the Lint job for any PR touching src/.
One was a real bug. mlir_jit.jit_compile_and_run ran
del func_name, argsand then readfunc_namewhenshape_replacementswas set, raising NameError. It now keepsfunc_name.The others are unused imports (check.py, idioms.py), an unused exception binding, and one-line compound statements in mlir_canonicalize.py and mlir_generator.py. Net Python lines go down by 10. Comments in the touched files also lose their em dashes.