diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fe5dc5a8..c81cb767 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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