Skip to content

Commit 3f0207d

Browse files
authored
Add rstcheck pre-commit hook (#996)
1 parent 12bf3a0 commit 3f0207d

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ repos:
2323
- id: setup-cfg-fmt
2424
args:
2525
- --include-version-classifiers
26+
- repo: https://github.com/rstcheck/rstcheck
27+
rev: v6.1.1
28+
hooks:
29+
- id: rstcheck
30+
additional_dependencies:
31+
- sphinx==6.1.3
32+
- tomli==2.0.1
2633
- repo: https://github.com/asottile/pyupgrade
2734
rev: v3.3.1
2835
hooks:

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,9 @@ warn_unused_ignores = true
3030
[[tool.mypy.overrides]]
3131
module = "tests.*"
3232
allow_untyped_defs = true
33+
34+
[tool.rstcheck]
35+
ignore_directives = [
36+
"automodule",
37+
]
38+
report_level = "ERROR"

0 commit comments

Comments
 (0)