Skip to content
Merged
Changes from all commits
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
32 changes: 12 additions & 20 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,30 +60,22 @@ repos:

- repo: local
hooks:
- id: check-pyproject-schema
- <<: &check-jsonschema-config
entry: check-jsonschema
pass_filenames: true
language: python
additional_dependencies: ["check-jsonschema==0.37.2"]
# This calls a remote URL, so run on pre-push to avoid slowing down commits
stages: ["pre-push"]
id: check-pyproject-schema
name: Validate pyproject.toml schema
entry: check-jsonschema
args: ["--schemafile", "https://json.schemastore.org/pyproject.json"]
files: pyproject.toml
pass_filenames: true
language: python
additional_dependencies: ["check-jsonschema==0.37.2"]
# This calls a remote URL, so run on pre-push to avoid slowing down commits
stages: ["pre-push"]

# Keep this one separate to make it easier to delete in downstream repos
- repo: local
hooks:
- id: check-pre-commit-hooks-schema
args: ["--schemafile", "https://json.schemastore.org/pyproject.json"]
- <<: *check-jsonschema-config
id: check-pre-commit-hooks-schema
name: Validate .pre-commit-hooks.yaml schema
entry: check-jsonschema
args: ["--schemafile", "https://json.schemastore.org/pre-commit-hooks.json"]
files: .pre-commit-hooks.yaml
pass_filenames: true
language: python
additional_dependencies: ["check-jsonschema==0.37.2"]
# This calls a remote URL, so run on pre-push to avoid slowing down commits
stages: ["pre-push"]
args: ["--schemafile", "https://json.schemastore.org/pre-commit-hooks.json"]

- repo: local
hooks:
Expand Down