Skip to content
Discussion options

You must be logged in to vote

The only real difference is exit codes. rumdl fmt always exits 0. rumdl check --fix exits 1 when something can't be auto-fixed. Same rules, same fixes, same file writes, just different behavior when violations are left over.

The rumdl-fmt pre-commit hook was quietly running rumdl check --fix under the hood so it would fail on unfixable issues. Made sense at the time, but the name didn't match what was actually running.

I just pushed a fix. The hooks now do what their names say: rumdl runs check --fix (fails if anything is left unfixable), rumdl-fmt runs rumdl fmt (pure formatter, always exits 0, fails only if files change). Same pattern as ruff's ruff + ruff-format split. Use both together,

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jankatins
Comment options

Answer selected by jankatins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants