Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pre-commit-config: do not reformat schemas #548

Merged
merged 1 commit into from
Dec 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/'