Skip to content

Commit cd1257f

Browse files
authored
Add rstcheck pre-commit hook (#530)
1 parent 16aae46 commit cd1257f

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ 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+
- tomli==2.0.1
2632
- repo: https://github.com/asottile/pyupgrade
2733
rev: v3.3.1
2834
hooks:

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ warn_unreachable = true
2323
[[tool.mypy.overrides]]
2424
module = "tests.*"
2525
allow_untyped_defs = true
26+
27+
[tool.rstcheck]
28+
report_level = "ERROR"

0 commit comments

Comments
 (0)