From b6f9c4075a2cdca68140ac2f8865eebf299b6740 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Tue, 28 Jul 2026 20:05:47 -0400 Subject: [PATCH] Add source directory config to rstcheck and bump requirement This allows it to resolve absolute references and fixes issues like: ``` doc/users/getting_started/index.rst:7: (SEVERE/4) File referenced in "include" directive not found: Could not find sphinx 'source' directory. Please provide via config. ``` --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9c7f63ac81d8..4d2681647dd3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -66,12 +66,12 @@ repos: name: isort (python) files: ^galleries/tutorials/|^galleries/examples/|^galleries/plot_types/ - repo: https://github.com/rstcheck/rstcheck - rev: 77490ffa33bfc0928975ae3cf904219903db755d # frozen: v6.2.5 + rev: d8774e96810795967ed9603f445b4e751e7b313f # frozen: v6.3.0 hooks: - id: rstcheck additional_dependencies: - - rstcheck-core!=1.3 # https://github.com/rstcheck/rstcheck-core/pull/114#pullrequestreview-4239740896 - sphinx>=1.8.1 + args: ["--sphinx-source-dir", "doc"] - repo: https://github.com/adrienverge/yamllint rev: cba56bcde1fdd01c1deb3f945e69764c291a6530 # frozen: v1.38.0 hooks: