diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bca470013..5c94ad477 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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' ] diff --git a/.rstcheck.cfg b/.rstcheck.cfg new file mode 100644 index 000000000..cde1b65b6 --- /dev/null +++ b/.rstcheck.cfg @@ -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