Skip to content

Commit 722b095

Browse files
authored
Merge pull request #168 from bgilbert/precommit
Update pre-commit-config versions; enable reStructuredText validation
2 parents 6dec771 + f1dc93d commit 722b095

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v2
2222
- uses: actions/setup-python@v2
23-
- uses: pre-commit/action@v2.0.2
23+
- uses: pre-commit/action@v3.0.0
2424
tests:
2525
name: Tests
2626
needs: pre-commit

.pre-commit-config.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ exclude: '^(lgpl-2\.1\.txt|examples/deepzoom/static/.*\.js)$'
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v4.0.1
6+
rev: v4.3.0
77
hooks:
88
- id: check-added-large-files
99
- id: check-merge-conflict
@@ -14,14 +14,14 @@ repos:
1414
exclude: '^\.github/.*\.md$'
1515

1616
- repo: https://github.com/asottile/pyupgrade
17-
rev: v2.19.1
17+
rev: v2.34.0
1818
hooks:
1919
- id: pyupgrade
2020
name: Modernize python code
2121
args: ["--py37-plus"]
2222

2323
- repo: https://github.com/PyCQA/isort
24-
rev: 5.8.0
24+
rev: 5.10.1
2525
hooks:
2626
- id: isort
2727
name: Reorder python imports with isort
@@ -41,23 +41,23 @@ repos:
4141
name: Format python code in documentation
4242

4343
- repo: https://github.com/asottile/yesqa
44-
rev: v1.2.3
44+
rev: v1.3.0
4545
hooks:
4646
- id: yesqa
4747

4848
- repo: https://github.com/PyCQA/flake8
49-
rev: 3.9.2
49+
rev: 4.0.1
5050
hooks:
5151
- id: flake8
5252
name: Lint python code with flake8
5353
additional_dependencies: [flake8-bugbear]
5454

55-
#- repo: https://github.com/myint/rstcheck
56-
# rev: 3f92957478422df87bd730abde66f089cc1ee19b
57-
# hooks:
58-
# - id: rstcheck
59-
# name: Validate reStructuredText syntax
60-
# additional_dependencies: [sphinx]
55+
- repo: https://github.com/rstcheck/rstcheck
56+
rev: v6.0.0.post1
57+
hooks:
58+
- id: rstcheck
59+
name: Validate reStructuredText syntax
60+
additional_dependencies: [sphinx]
6161

6262
- repo: meta
6363
hooks:

0 commit comments

Comments
 (0)