1
0
mirror of https://github.com/satwikkansal/wtfpython synced 2024-11-23 19:44:25 +01:00

Add markdownlint-cli2 as Github Action and pre-commit hook

This commit is contained in:
Vadim Nifadev 2024-10-23 08:54:18 +03:00
parent ebfa77e509
commit a999ed789f
2 changed files with 24 additions and 0 deletions

17
.github/workflows/pr.yaml vendored Normal file
View File

@ -0,0 +1,17 @@
on: [pull_request]
permissions:
contents: read
pull-requests: read
checks: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DavidAnson/markdownlint-cli2-action@v17

7
.pre-commit-config.yaml vendored Normal file
View File

@ -0,0 +1,7 @@
default_language_version:
python: python3.12
repos:
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.14.0
hooks:
- id: markdownlint-cli2