From dd13e34141bdd768e0e0c3020ed4cf7f055b48ab Mon Sep 17 00:00:00 2001 From: "Peter A. Jonsson" Date: Thu, 16 Nov 2023 09:13:28 +0100 Subject: [PATCH] pre-commit-config: do not reformat schemas Reformatting will give spurious differences after running the update.sh script. --- .pre-commit-config.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 678ef6761..fff9edba7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -49,18 +49,20 @@ repos: - id: check-docstring-first # Avoid common error of code before docstring. - id: check-json # Check json file syntax # (Exclude Typescript config: it uses json5 extensions) - exclude: 'tsconfig.json' + exclude: 'tsconfig.json|^integration_tests/schemas/' - id: check-merge-conflict # Don't commit merge-conflicts - id: check-symlinks # Symlinks that don't point to anything? - id: check-yaml # Check Yaml file syntax args: [--allow-multiple-documents] - id: debug-statements # Avoid commiting debug/breakpoints - id: end-of-file-fixer # Normalise on exactly one newline + exclude: '^integration_tests/schemas/' - id: fix-byte-order-marker # No UTF-8 byte order marks - id: mixed-line-ending # Don't allow mixed line endings - id: pretty-format-json args: ['--no-sort-keys', '--indent=4', '--autofix'] # (Exclude Typescript config: it uses json5 extensions) - exclude: 'tsconfig.json' + exclude: 'tsconfig.json|^integration_tests/schemas/' - id: requirements-txt-fixer # Keep requirements files sorted. - id: trailing-whitespace # Auto remove trailing whitespace + exclude: '^integration_tests/schemas/'