diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 87d1d63..c51468e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,16 +11,20 @@ repos: - id: mixed-line-ending - id: check-yaml - - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.34.0 + - repo: https://github.com/executablebooks/mdformat + rev: 0.7.16 hooks: - - id: markdownlint - entry: markdownlint --ignore .github/*.md + - id: mdformat + name: fix markdown formatting with mdformat + types: [markdown] + additional_dependencies: + - mdformat-gfm + - mdformat-toc + - mdformat-frontmatter - repo: https://github.com/trussworks/pre-commit-hooks rev: v1.1.1 hooks: - - id: markdown-toc - id: mdspell - id: spelling-sort diff --git a/README.md b/README.md index 020dac5..f6b40a7 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,17 @@ # Truss pre-commit hooks - - -* [circleci-validate](#circleci-validate) -* [gen-docs](#gen-docs) -* [goreleaser-check](#goreleaser-check) -* [markdown-toc](#markdown-toc) -* [mdspell](#mdspell) -* [spelling-sort](#spelling-sort) -* [hadolint](#hadolint) - - - - + + +- [Truss pre-commit hooks](#truss-pre-commit-hooks) + - [circleci-validate](#circleci-validate) + - [gen-docs](#gen-docs) + - [goreleaser-check](#goreleaser-check) + - [markdown-toc](#markdown-toc) + - [mdspell](#mdspell) + - [spelling-sort](#spelling-sort) + - [hadolint](#hadolint) + + ## circleci-validate