diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3def85c..d10ecd8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,6 +23,12 @@ repos: - id: setup-cfg-fmt args: - --include-version-classifiers +- repo: https://github.com/rstcheck/rstcheck + rev: v6.1.1 + hooks: + - id: rstcheck + additional_dependencies: + - tomli==2.0.1 - repo: https://github.com/asottile/pyupgrade rev: v3.3.1 hooks: diff --git a/pyproject.toml b/pyproject.toml index 4172b80..f15f73a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,3 +23,6 @@ warn_unreachable = true [[tool.mypy.overrides]] module = "tests.*" allow_untyped_defs = true + +[tool.rstcheck] +report_level = "ERROR"