Skip to content

Commit 08077fd

Browse files
markdownlint -> pymarkdown (#63)
* markdownlint -> pymarkdown * Add windows runner to template test CI
1 parent 4cdc2fc commit 08077fd

File tree

4 files changed

+25
-19
lines changed

4 files changed

+25
-19
lines changed

.github/workflows/pr-ci.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ jobs:
6161
include-hidden-files: true
6262

6363
test-template:
64-
runs-on: ubuntu-latest
64+
strategy:
65+
matrix:
66+
os: [windows-latest, ubuntu-latest]
67+
fail-fast: false
68+
runs-on: ${{ matrix.os }}
6569
needs: build-template
6670
steps:
6771
- name: Download built package

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2626
- EditorConfig file within template (#50).
2727
- Documentation accessibility checking (#41).
2828
- Documentation FAQ in contributing guidelines (#41).
29+
- Markdown linting as part of CI checks (#61, #62).
2930

3031
### Fixed
3132

{{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)