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

Json Checking #930

Merged
merged 13 commits into from
Jan 17, 2025
22 changes: 18 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,26 @@ repos:
- id: check-yaml
- id: end-of-file-fixer
stages: [pre-commit, manual]
# TODO:
#- id: pretty-format-json
# args: [--autofix, --no-sort-keys]
# stages: [pre-commit, manual]
- id: trailing-whitespace
stages: [pre-commit, manual]
- repo: https://gitlab.com/bmares/check-json5
rev: v1.0.0
hooks:
- id: check-json5
alias: check-json
types_or: [file, json]
files: '\.json[c]?$'
# FIXME: This removes comments.
# See Also: https://github.com/dpranke/pyjson5/issues/28
#- repo: https://github.com/whtsky/pre-commit-pretty-format-json5
# rev: "1.0.0"
# hooks:
# - id: pretty-format-json5
# alias: pretty-format-json
# args: [--no-sort-keys]
# stages: [pre-commit, manual]
# types_or: [file, json]
# files: '\.json[c]?$'
- repo: https://github.com/johann-petrak/licenseheaders
rev: v0.8.8
hooks:
Expand Down
4 changes: 0 additions & 4 deletions .prettierrc

This file was deleted.

Loading