Skip to content

Commit 07cf021

Browse files
committed
Add lint action, remove pre-commit from requirements, re-order config
1 parent 1c43dcd commit 07cf021

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

.github/workflows/lint.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Lint
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v4
15+
with:
16+
python-version: "3.11"
17+
- uses: pre-commit/[email protected]

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
repos:
2-
- repo: https://github.com/sphinx-contrib/sphinx-lint
3-
rev: v0.6.8
4-
hooks:
5-
- id: sphinx-lint
6-
72
- repo: https://github.com/psf/black-pre-commit-mirror
83
rev: 23.9.1
94
hooks:
@@ -17,3 +12,8 @@ repos:
1712
- id: check-yaml
1813
- id: end-of-file-fixer
1914
- id: trailing-whitespace
15+
16+
- repo: https://github.com/sphinx-contrib/sphinx-lint
17+
rev: v0.6.8
18+
hooks:
19+
- id: sphinx-lint

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ myst-parser
33
furo
44
sphinx-copybutton
55
sphinx-autobuild
6-
pre-commit
76

87
# TODO remove docutils pin when this issue fixed:
98
# https://github.com/executablebooks/MyST-Parser/issues/612

0 commit comments

Comments
 (0)