mirror of
https://github.com/satwikkansal/wtfpython
synced 2024-11-23 11:34:24 +01:00
Add markdownlint-cli2 as Github Action and pre-commit hook
This commit is contained in:
parent
ebfa77e509
commit
a999ed789f
17
.github/workflows/pr.yaml
vendored
Normal file
17
.github/workflows/pr.yaml
vendored
Normal 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
7
.pre-commit-config.yaml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user