Skip to content

Commit

Permalink
pre-commit-config: do not reformat schemas
Browse files Browse the repository at this point in the history
Reformatting will give spurious differences
after running the update.sh script.
  • Loading branch information
pjonsson authored and omad committed Dec 4, 2023
1 parent d7fa351 commit 16ba446
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/'

0 comments on commit 16ba446

Please sign in to comment.