Skip to content

Commit

Permalink
Add rstcheck to pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Feb 11, 2024
1 parent 58c2b87 commit f39b5b1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@ repos:
- id: remove-tabs
args: [ '--whitespaces-count', '2']
files: \.rst$

- repo: https://github.com/rstcheck/rstcheck
rev: v6.2.0
hooks:
- id: rstcheck
args: [ '--config', '.rstcheck.cfg' ]
15 changes: 15 additions & 0 deletions .rstcheck.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[rstcheck]
report_level=WARNING
ignore_directives =
one,
two,
three,
ignore_roles=
src,
RFC,
filter
ignore_languages=
filter,
python
ignore_substitutions=
image_link

0 comments on commit f39b5b1

Please sign in to comment.