mirror of
https://github.com/containers/podman
synced 2024-10-18 16:24:34 +00:00
70a53cb76a
Remove all trailing white spaces from all lines before the line by line processing Add test Exclude the unit file used for the test from whitespace check Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
21 lines
937 B
YAML
21 lines
937 B
YAML
---
|
|
exclude: ^vendor/|^test/tools/vendor/
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks.git
|
|
rev: v3.4.0
|
|
hooks:
|
|
# 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.
|
|
- id: end-of-file-fixer
|
|
exclude: test/buildah-bud/buildah-tests.diff
|
|
- id: trailing-whitespace
|
|
exclude: test/buildah-bud/buildah-tests.diff|test/e2e/quadlet/remap-keep-id2.container|test/e2e/quadlet/line-continuation-whitespace.container
|
|
- id: mixed-line-ending
|
|
- id: check-byte-order-marker
|
|
- id: check-executables-have-shebangs
|
|
- id: check-merge-conflict
|
|
- id: check-yaml
|