Skip to content

Commit 7ccc045

Browse files
committed
Lint RST on GitHub Actions
1 parent 6f091c5 commit 7ccc045

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.github/workflows/lint.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Lint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
pre-commit:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-python@v2
11+
- uses: pre-commit/[email protected]

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pygrep-hooks
3+
rev: v1.7.1
4+
hooks:
5+
- id: rst-backticks
6+
- id: rst-inline-touching-normal

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,7 @@ package: all rss
5353
cp *.png build/peps/
5454
cp *.rss build/peps/
5555
tar -C build -czf build/peps.tar.gz peps
56+
57+
lint:
58+
pre-commit --version > /dev/null || python3 -m pip install pre-commit
59+
pre-commit run --all-files

0 commit comments

Comments
 (0)