From 308776e78abd8fa297dce94b006a805cbe3601b4 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Tue, 16 Jan 2024 15:57:39 +0000 Subject: [PATCH] pre-commit: Add vacuum Lint our OpenAPI specs. Signed-off-by: Stephen Finucane --- .pre-commit-config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fdcd4012..2114b236 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: -- 2.47.3