Skip to content

Commit db3d653

Browse files
committed
Add pre-commit config
1 parent 6b1a156 commit db3d653

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.pre-commit-config.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
repos:
2+
- repo: https://github.com/sphinx-contrib/sphinx-lint
3+
rev: v0.6.8
4+
hooks:
5+
- id: sphinx-lint
6+
7+
- repo: https://github.com/psf/black
8+
rev: 23.9.1
9+
hooks:
10+
- id: black
11+
12+
- repo: https://github.com/pre-commit/pre-commit-hooks
13+
rev: v4.4.0
14+
hooks:
15+
- id: end-of-file-fixer
16+
- id: trailing-whitespace

requirements.txt

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

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

0 commit comments

Comments
 (0)