]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
pre-commit: Add vacuum
authorStephen Finucane <stephen@that.guru>
Tue, 16 Jan 2024 15:57:39 +0000 (15:57 +0000)
committerStephen Finucane <stephen@that.guru>
Tue, 16 Jan 2024 21:58:30 +0000 (21:58 +0000)
Lint our OpenAPI specs.

Signed-off-by: Stephen Finucane <stephen@that.guru>
.pre-commit-config.yaml

index fdcd401253f76ecef3ef18fdb4f9f1cd903fafbc..2114b236bd235308e28bf1d162b74a94f2ea52dd 100644 (file)
@@ -28,6 +28,11 @@ repos:
     rev: 2.1.1
     hooks:
       - id: bashate
+  - repo: https://github.com/daveshanley/vacuum
+    rev: v0.7.2
+    hooks:
+      - id: vacuum
+        files: ^docs/api/schemas/(latest|v\d\.\d)/patchwork.yaml
   - repo: https://github.com/psf/black
     rev: 23.12.1
     hooks: