Skip to content

Commit 162b50e

Browse files
author
John McFarlane
committed
Use pre-commit for markdown linting
1 parent dc59f6e commit 162b50e

3 files changed

Lines changed: 6 additions & 32 deletions

File tree

.github/workflows/test.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -431,18 +431,6 @@ jobs:
431431
git config --global --add safe.directory $GITHUB_WORKSPACE
432432
$GITHUB_WORKSPACE/test/scripts/shellcheck
433433
434-
# Test markdown
435-
markdownlint:
436-
runs-on: ubuntu-20.04
437-
steps:
438-
- uses: actions/checkout@v2
439-
440-
- name: Run markdownlint
441-
shell: bash
442-
run: |
443-
sudo snap install mdl
444-
$GITHUB_WORKSPACE/test/scripts/markdownlint
445-
446434
# Test YAML
447435
yamllint:
448436
runs-on: ubuntu-20.04

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ repos:
55
hooks:
66
- id: trailing-whitespace
77
exclude: ^(.*).md$
8+
9+
- repo: https://github.com/markdownlint/markdownlint
10+
rev: v0.11.0
11+
hooks:
12+
- id: markdownlint
13+
args: ["--style", "test/scripts/mdl.style"]

test/scripts/markdownlint

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)