|
8 | 8 | - id: check-added-large-files
|
9 | 9 | args: ["--maxkb=1000"]
|
10 | 10 |
|
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 |
12 | 12 | rev: v0.9.2
|
13 | 13 | hooks:
|
14 | 14 | - id: ruff
|
15 |
| - args: [ --fix, --exit-non-zero-on-fix ] |
| 15 | + args: [--fix, --exit-non-zero-on-fix] |
16 | 16 | - id: ruff-format
|
17 | 17 |
|
18 |
| - - repo: https://github.com/markdownlint/markdownlint |
19 |
| - rev: v0.12.0 |
| 18 | + - repo: https://github.com/jackdewinter/pymarkdown |
| 19 | + rev: v0.9.27 |
20 | 20 | 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" |
28 | 29 |
|
29 | 30 | - repo: https://github.com/codespell-project/codespell
|
30 | 31 | rev: v2.4.0
|
31 | 32 | 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 |
36 | 37 |
|
37 | 38 | - repo: local
|
38 | 39 | hooks:
|
|
49 | 50 | language: pygrep
|
50 | 51 | types: [text]
|
51 | 52 |
|
52 |
| -ci: # https://pre-commit.ci/ |
| 53 | +ci: # https://pre-commit.ci/ |
53 | 54 | autofix_prs: false
|
54 | 55 | autoupdate_schedule: monthly
|
0 commit comments