From bdb8b07d9c9f806a706fd20cbbbf6bab707ae6dd Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Tue, 1 Sep 2026 12:07:21 +0100 Subject: [PATCH] Add pyproject.toml validation to pre-commit --- .pre-commit-config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3733c84f6b76..ca4b0e830c03 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,6 +16,13 @@ repos: - id: check-github-workflows - id: check-renovate additional_dependencies: ["json5==0.15.0"] + - repo: https://github.com/abravalheri/validate-pyproject + rev: 4b2e70d08cb2ccd26d1fba73588de41c7a5d50b7 # frozen: v0.25 + hooks: + - id: validate-pyproject + # Renovate needs an explicit language to update additional_dependencies. + language: python + additional_dependencies: ["validate-pyproject-schema-store[all]==2026.8.15"] - repo: https://github.com/astral-sh/ruff-pre-commit # The Ruff version must match requirements-tests.txt. rev: c59bba8fb259db0fec2bbb77ad8ba51ea7341b56 # frozen: v0.15.20