diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a22bf01..02f4a34 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.8 + rev: v0.16.5 hooks: - id: ruff-check args: [--fix] @@ -12,8 +12,26 @@ repos: - id: check-added-large-files - id: check-merge-conflict - id: check-yaml + exclude: ^conda-recipe/meta\.yaml$ - id: check-toml - - id: end-of-file-fixer - - id: trailing-whitespace - id: check-case-conflict - id: check-ast + - id: end-of-file-fixer + - id: trailing-whitespace + + - repo: https://github.com/rstcheck/rstcheck + rev: v6.3.0 + hooks: + - id: rstcheck + name: rstcheck (docstrings only) + files: \.py$ + args: ["--report-level", "warning"] + + - repo: local + hooks: + - id: sphinx-docs + name: sphinx-build (pre-push, warnings as errors) + entry: bash -lc 'make -C docs clean && make -C docs html SPHINXOPTS="-W --keep-going"' + language: system + pass_filenames: false + stages: [pre-push]