2021-03-15 15:16:49 +00:00
|
|
|
# This is a configuration for https://pre-commit.com/.
|
|
|
|
# On macOS, try `brew install pre-commit` and then run `pre-commit install`.
|
2021-04-05 22:01:17 +00:00
|
|
|
exclude: '^(site|generated)/'
|
2020-08-14 19:41:11 +00:00
|
|
|
repos:
|
|
|
|
- repo: git://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: v3.2.0
|
|
|
|
hooks:
|
|
|
|
# TODO: find a version of this to validate ytt templates?
|
|
|
|
# - id: check-yaml
|
|
|
|
# args: ['--allow-multiple-documents']
|
|
|
|
- id: check-json
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-added-large-files
|
|
|
|
- id: check-byte-order-marker
|
|
|
|
- id: detect-private-key
|
|
|
|
exclude: testdata
|
|
|
|
- id: mixed-line-ending
|
2021-01-05 23:53:14 +00:00
|
|
|
- repo: local
|
2021-01-05 22:02:28 +00:00
|
|
|
hooks:
|
|
|
|
- id: validate-copyright-year
|
2021-01-05 23:53:14 +00:00
|
|
|
name: Validate copyright year
|
|
|
|
entry: hack/check-copyright-year.sh
|
|
|
|
language: script
|