Closed fsimonis closed 3 months ago
@fsimonis does pre-commit run --all
indeed work for you. The pre-commit added here doesn't work for me, but it could be an issue with my local markdown pre-commit.
Tried locally again and it works for me :tm:.
run --all
doesn't pick up untracked files though. So make sure to git add
them first.
Removing a bash
from a code fence in the readme results in:
$ pre-commit run -va markdownlint
markdownlint.............................................................Failed
- hook id: markdownlint
- duration: 0.12s
- exit code: 1
docs/README.md:320 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
Main changes of this PR
This PR adds lints for the website integration via pre-commit. The image name check is a safeguard for possible future images. The mardown lint is a port of the existing workflow.
Author's checklist
pre-commit
hook and usedpre-commit run --all
to apply all available hooks.