Skip to content

Commit 398bc72

Browse files
committed
Added better checks on when prototype data is validated
1 parent 7e7cfe1 commit 398bc72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ repos:
2929
name: Validate 2.0.x prototype data
3030
types:
3131
- json
32-
files: ^prototype-data/2.0.x/.*\.json$
32+
files: ^(json-schemas|prototype-data)/2.0.x/.*\.json$
3333
require_serial: true
3434
pass_filenames: false
3535
args: [ "-c", "json-schemas/2.0.x", "prototype-data/2.0.x" ]
@@ -45,7 +45,7 @@ repos:
4545
name: Validate 1.0.x prototype data
4646
types:
4747
- json
48-
files: ^prototype-data/1.0.x/.*\.json$
48+
files: ^(json-schemas|prototype-data)/1.0.x/.*\.json$
4949
require_serial: true
5050
pass_filenames: false
5151
args: [ "-c", "json-schemas/1.0.x", "prototype-data/1.0.x" ]

0 commit comments

Comments
 (0)