summaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2021-02-09 14:33:19 -0700
committerEd Santiago <santiago@redhat.com>2021-07-28 14:14:42 -0600
commitec9dad7e4f1547bb46c46c36bf5eb56ef5b09bb0 (patch)
treee7ac9ecd176d12eb2eef4ae68c9bf7eb9437c2ec /.pre-commit-config.yaml
parentf9395ddc5ad8b32e4e9b24542f0869722f7c9743 (diff)
downloadpodman-ec9dad7e4f1547bb46c46c36bf5eb56ef5b09bb0.tar.gz
podman-ec9dad7e4f1547bb46c46c36bf5eb56ef5b09bb0.tar.bz2
podman-ec9dad7e4f1547bb46c46c36bf5eb56ef5b09bb0.zip
buildah bud tests under podman-remote
New functionality -- mostly in the diffs we apply to buildah's helpers.bash -- to enable running buildah-bud tests under podman-remote. The gist of it is, we start a 'podman system service' before each test, and clean it up on test exit. Design decision: the diff file for helpers.bash is no longer trailing-whitespace-clean: that ended up producing diffs that git wouldn't apply, because in some cases the whitespace is actually important. In order to pass CI, we need to exclude this file from some checks. Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f44b0ea42..91c0fef87 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -4,8 +4,15 @@ 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
- id: mixed-line-ending
- id: check-byte-order-marker
- id: check-executables-have-shebangs