Skip to content

fix: clear the 24 ruff errors on main - #980

Merged
godofecht merged 1 commit into
mainfrom
fix/ruff-main
Sep 27, 2026
Merged

godofecht merged 1 commit into
mainfrom
fix/ruff-main

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

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, args and then read func_name when shape_replacements was set, raising NameError. It now keeps func_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.

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.
@godofecht
godofecht merged commit 660ff30 into main Sep 27, 2026
26 of 28 checks passed
@godofecht
godofecht deleted the fix/ruff-main branch October 1, 2026 12:49
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.

1 participant