Skip to content

Commit a999ed7

Browse files
committed
Add markdownlint-cli2 as Github Action and pre-commit hook
1 parent ebfa77e commit a999ed7

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/pr.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
on: [pull_request]
2+
3+
permissions:
4+
contents: read
5+
pull-requests: read
6+
checks: write
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: DavidAnson/markdownlint-cli2-action@v17

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
default_language_version:
2+
python: python3.12
3+
repos:
4+
- repo: https://github.com/DavidAnson/markdownlint-cli2
5+
rev: v0.14.0
6+
hooks:
7+
- id: markdownlint-cli2

0 commit comments

Comments
 (0)