2020-01-07 20:46:18 +00:00
|
|
|
---
|
2022-05-04 13:01:23 +00:00
|
|
|
exclude: ^vendor/|^test/tools/vendor/
|
2020-01-07 20:46:18 +00:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks.git
|
2021-03-05 07:43:40 +00:00
|
|
|
rev: v3.4.0
|
2020-01-07 20:46:18 +00:00
|
|
|
hooks:
|
2021-02-09 21:33:19 +00:00
|
|
|
# buildah-tests.diff is generated by 'git format-patch' and includes
|
|
|
|
# trailing whitespace as part of its format. We can work around that,
|
|
|
|
# but unfortunately the buildah repo has some files with tabs, which
|
|
|
|
# git-diff formats as '[+/-]<space><tab>', which these hooks choke on.
|
|
|
|
# Just disable checks on this diff file as a special case.
|
2020-01-07 20:46:18 +00:00
|
|
|
- id: end-of-file-fixer
|
2021-02-09 21:33:19 +00:00
|
|
|
exclude: test/buildah-bud/buildah-tests.diff
|
2020-01-07 20:46:18 +00:00
|
|
|
- id: trailing-whitespace
|
2021-02-09 21:33:19 +00:00
|
|
|
exclude: test/buildah-bud/buildah-tests.diff
|
2020-01-07 20:46:18 +00:00
|
|
|
- id: mixed-line-ending
|
|
|
|
- id: check-byte-order-marker
|
|
|
|
- id: check-executables-have-shebangs
|
|
|
|
- id: check-merge-conflict
|
2022-04-25 18:45:40 +00:00
|
|
|
- id: check-yaml
|