A pre-commit hook for rumdl, a fast Markdown linter and formatter written in Rust.
To use rumdl with pre-commit, add the following to your .pre-commit-config.yaml:
repos:
- repo: https://github.com/rvben/rumdl-pre-commit
rev: v0.2.18
hooks:
- id: rumdl # Lint only; add args [--fix] to auto-fix
- id: rumdl-fmt # Pure format, always exits 0Two hooks are available:
rumdl- Lints files and exits 1 if violations are found. Non-destructive by default; addargs: [--fix]to auto-fix in place (the same opt-in model as ruff's linter hook).rumdl-fmt- Formats files in place and always exits 0. Relies on pre-commit's file-change detection. Use alongsiderumdlfor the ruff-style split.
To auto-fix violations in place, opt in with args:
- id: rumdl
args: [--fix]When you run pre-commit install or pre-commit run, pre-commit will automatically install rumdl in an isolated Python environment using pip. You do not need to install rumdl manually.
MIT (see LICENSE)