diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml new file mode 100644 index 0000000..4da1774 --- /dev/null +++ b/.github/workflows/pr.yaml @@ -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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..8813a02 --- /dev/null +++ b/.pre-commit-config.yaml @@ -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