Skip to content

Commit

Permalink
chore: Add doc JSON schema checks and formatting to pre-commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
s373nZ committed Dec 17, 2024
1 parent 41003ee commit e5560cd
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,29 @@ repos:
entry: clang-format
types: [ c ]

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.30.0
hooks:
- id: check-jsonschema
name: check doc JSON schemas
args: ["--schemafile", "doc/rpc-schema-draft.json"]
files: ^doc/schemas/.*\.json$
types: [ json ]

- id: check-metaschema
name: check doc JSON metaschemas
args: ["--verbose"]
files: ^doc/schemas/.*\.json$
types: [ json ]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: pretty-format-json
args: [ "--indent", "2", "--no-sort-keys" ]
files: ^doc/schemas/.*\.json$
types: [ json ]

- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
Expand Down

0 comments on commit e5560cd

Please sign in to comment.