Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
feat(pre-commit): add schema fix on pre-commit
Signed-off-by: karan-palan <[email protected]>
  • Loading branch information
Karan-Palan committed Sep 5, 2025
commit 707e257ce34fcfbf9ceb4ef0c1a40ebfaf032ff6
13 changes: 0 additions & 13 deletions .github/workflows/regress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,6 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
regress-jsonschema-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Lint JSON Schemas
run: npx jsonschema lint --exclude const_with_type --ignore spec/schemas/json-schema-draft-07.json spec/schemas/*.json
regress-smoke:
needs: build-llvm
runs-on: ubuntu-latest
Expand Down
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,18 @@ repos:
- id: check-yaml
stages: [pre-commit]

- repo: local
hooks:
- id: jsonschema-lint
name: Lint and auto-fix JSON Schemas
stages: [pre-commit]
language: system
entry: npx jsonschema lint --fix
files: ^spec/schemas/.*\.json$
exclude: spec/schemas/json-schema-draft-07\.json
pass_filenames: true
require_serial: false

- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.5.3
hooks:
Expand Down