diff mbox series

[v2,4/4] .pre-commit-config.yaml: add gen-doc-links

Message ID 20260716-gen-doc-links-intersphinx-v2-4-83cb3aef6ff6@bootlin.com
State New
Headers show
Series Generate documentation links for OE-Core | expand

Commit Message

Antonin Godard July 16, 2026, 12:18 p.m. UTC
It is easy to forget updating this file when adding or removing
variables/tasks. Add a pre-commit hook that does the job for us before
committing our change.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 .pre-commit-config.yaml | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox series

Patch

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f2b73a481..041f5b30d 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -6,3 +6,10 @@  repos:
         entry: ./documentation/tools/check-glossaries
         language: python
         pass_filenames: false
+      - id: gen-doc-links
+        name: Generate documentation links
+        entry: ./documentation/tools/gen-doc-links
+        language: python
+        verbose: true
+        pass_filenames: false
+        additional_dependencies: [sphinx]