Skip to content

Commit

Permalink
Add pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed Jun 17, 2024
1 parent c8f899d commit b37d3e5
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Apply to all files without commiting:
# pre-commit run --all-files
# Update this file:
# pre-commit autoupdate
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
# ensure syntaxes are valid
- id: check-yaml
# catch git merge/rebase problems
- id: check-merge-conflict
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.5
hooks:
- id: check-github-workflows
# validate sub-teams schema
- id: check-jsonschema
files: ^teams/.*/.*\.ya?ml$
args: [--schemafile, teams/sub-teams-schema.json]
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes

0 comments on commit b37d3e5

Please sign in to comment.