Skip to content

Add a pre-commit hook definition - #109

Open
bittner wants to merge 1 commit into
nvuillam:mainfrom
painless-software:add-pre-commit-hook
Open

Add a pre-commit hook definition#109
bittner wants to merge 1 commit into
nvuillam:mainfrom
painless-software:add-pre-commit-hook

Conversation

@bittner

@bittner bittner commented Jul 18, 2026

Copy link
Copy Markdown

Adds a .pre-commit-hooks.yaml so the formatter can be used directly as a pre-commit hook:

- repo: https://github.com/nvuillam/markdown-table-formatter
  rev: v1.7.0
  hooks:
  - id: markdown-table-formatter

Today projects have to wrap the CLI in a repo: local hook (via npx or a system install) to run it before a commit. This one small file lets them consume it the standard way, pinned by rev, with pre-commit managing the install.

The hook runs the existing bin over staged Markdown files and formats their tables in place.

Ships a .pre-commit-hooks.yaml so the formatter can be used directly as a
pre-commit hook, without wrapping it in a local shell command.

@echoix echoix left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks right, from what I see when I use pre-commit hooks

Cc @nvuillam

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.

2 participants