Skip to content

Commit 7b3760a

Browse files
committed
Add markdownlint to build process and hooks
1 parent 1ca93b5 commit 7b3760a

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,9 @@ repos:
3333
- id: mypy
3434
additional_dependencies: [pytest]
3535
args: [--strict]
36+
37+
- repo: https://github.com/igorshubovych/markdownlint-cli
38+
rev: v0.37.0
39+
hooks:
40+
- id: markdownlint
41+
args: [--fix]

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ check-format:
1818

1919
check-lint:
2020
ruff check .
21+
markdownlint .
2122

2223
check-type:
2324
mypy --strict .
@@ -33,6 +34,7 @@ fix-format:
3334

3435
fix-lint:
3536
ruff check --fix .
37+
markdownlint --fix .
3638

3739
fix-all:
3840
make fix-format

requirements-dev.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ pre-commit>=3.0.0
66
# Testing
77
pytest>=7.0.0
88
pytest-cov>=4.0.0
9+
10+
# Markdown linting
11+
markdownlint-cli>=0.37.0

0 commit comments

Comments
 (0)