Skip to content

Commit 853c306

Browse files
committed
markdownlint -> pymarkdown
1 parent 4cdc2fc commit 853c306

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

{{cookiecutter.repository_name}}/.github/workflows/docs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ jobs:
2727
- if: github.event.repository.private
2828
uses: pre-commit/[email protected]
2929
with:
30-
extra_args: markdownlint
30+
extra_args: pymarkdown --all-files
3131
- if: github.event.repository.private
3232
uses: pre-commit/[email protected]
3333
with:
34-
extra_args: codespell
34+
extra_args: codespell --all-files
3535

3636
docs-test:
3737
needs: [docs-lint]

{{cookiecutter.repository_name}}/.pre-commit-config.yaml

+17-16
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,32 @@ repos:
88
- id: check-added-large-files
99
args: ["--maxkb=1000"]
1010

11-
- repo: https://github.com/astral-sh/ruff-pre-commit # https://beta.ruff.rs/docs/usage/#github-action
11+
- repo: https://github.com/astral-sh/ruff-pre-commit # https://beta.ruff.rs/docs/usage/#github-action
1212
rev: v0.9.2
1313
hooks:
1414
- id: ruff
15-
args: [ --fix, --exit-non-zero-on-fix ]
15+
args: [--fix, --exit-non-zero-on-fix]
1616
- id: ruff-format
1717

18-
- repo: https://github.com/markdownlint/markdownlint
19-
rev: v0.12.0
18+
- repo: https://github.com/jackdewinter/pymarkdown
19+
rev: v0.9.27
2020
hooks:
21-
- id: markdownlint
22-
name: Markdownlint
23-
description: Run markdownlint on your Markdown files
24-
entry: mdl
25-
language: ruby
26-
files: \.(md|mdown|markdown)$
27-
args: [-r, "~MD013,~MD046"]
21+
- id: pymarkdown
22+
args:
23+
- -d
24+
# line-length: we don't want to enforce line length as that can be too restrictive
25+
# first-line-heading: we get false positives due to commented sections at the start of Markdown files
26+
# code-block-style: MKDocs Material admonitions use indented blocks which raises a code block style false positive
27+
- line-length,first-line-heading,code-block-style
28+
- "scan"
2829

2930
- repo: https://github.com/codespell-project/codespell
3031
rev: v2.4.0
3132
hooks:
32-
- id: codespell
33-
# required for config to be managed in pyproject.toml
34-
additional_dependencies:
35-
- tomli
33+
- id: codespell
34+
# required for config to be managed in pyproject.toml
35+
additional_dependencies:
36+
- tomli
3637

3738
- repo: local
3839
hooks:
@@ -49,6 +50,6 @@ repos:
4950
language: pygrep
5051
types: [text]
5152

52-
ci: # https://pre-commit.ci/
53+
ci: # https://pre-commit.ci/
5354
autofix_prs: false
5455
autoupdate_schedule: monthly

0 commit comments

Comments
 (0)