Skip to content

Commit

Permalink
Updated .pre-commit-config.yaml , so it only validates when a change …
Browse files Browse the repository at this point in the history
…happens
  • Loading branch information
jmfernandez committed Nov 22, 2024
1 parent 242ab39 commit 439b85a
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,42 @@ repos:
hooks:
- id: jsonschema_dir_validate
name: Check 2.0.x
language: python
always_run: true
types:
- json
files: ^json-schemas/2.0.x/.*\.json$
require_serial: true
pass_filenames: false
args: [ "json-schemas/2.0.x" ]
- id: json_validation
name: Validate 2.0.x prototype data
language: python
always_run: true
types:
- json
files: ^prototype-data/2.0.x/.*\.json$
require_serial: true
pass_filenames: false
args: [ "-c", "json-schemas/2.0.x", "prototype-data/2.0.x" ]
- id: jsonschema_dir_validate
name: Check 1.0.x
language: python
always_run: true
types:
- json
files: ^json-schemas/1.0.x/.*\.json$
require_serial: true
pass_filenames: false
args: [ "json-schemas/1.0.x" ]
- id: json_validation
name: Validate 1.0.x prototype data
language: python
always_run: true
types:
- json
files: ^prototype-data/1.0.x/.*\.json$
require_serial: true
pass_filenames: false
args: [ "-c", "json-schemas/1.0.x", "prototype-data/1.0.x" ]
- id: jsonschema_dir_validate
name: Check 0.4.x
language: python
always_run: true
types:
- json
files: ^json-schemas/0.4.x/.*\.json$
require_serial: true
pass_filenames: false
args: [ "json-schemas/0.4.x" ]
- repo: https://github.com/jmfernandez/pre-commit_mirrors-actionlint.git
Expand Down

0 comments on commit 439b85a

Please sign in to comment.