logo
0
0
WeChat Login

rumdl-pre-commit

A pre-commit hook for rumdl, a fast Markdown linter and formatter written in Rust.

Usage

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.1.67 hooks: - id: rumdl # Lint + auto-fix, fails if unfixable issues remain - id: rumdl-fmt # Pure format, always exits 0

Two hooks are available:

  • rumdl — Lints and auto-fixes files. Exits 1 if unfixable violations remain. Use this for full coverage.
  • rumdl-fmt — Formats files in place and always exits 0. Relies on pre-commit's file-change detection. Use alongside rumdl for the ruff-style split.

Installation

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.

License

MIT (see LICENSE)

About

mirror for https://github.com/rvben/rumdl-pre-commit.git

2.31 MiB
0 forks0 stars1 branches197 TagREADMEMIT license
Language
Python98%
Makefile2%