summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorSorin Sbarnea <ssbarnea@redhat.com>2020-01-07 20:46:18 +0000
committerSorin Sbarnea <ssbarnea@redhat.com>2020-01-14 13:42:59 +0000
commite9cd3319cf14b3d9484c4e6d7aa5040509a81653 (patch)
tree522210d5972a9de60223b062a68d4770debb232b /contrib
parent6c3d383b50439058c57b9f3235643aaf168d3148 (diff)
downloadpodman-e9cd3319cf14b3d9484c4e6d7aa5040509a81653.tar.gz
podman-e9cd3319cf14b3d9484c4e6d7aa5040509a81653.tar.bz2
podman-e9cd3319cf14b3d9484c4e6d7aa5040509a81653.zip
Enable pre-commit tool linting
This should help use keep the codebase more consistent, and avoid sevel whitespace related issues, or bad file permissions. pre-commit allows us to easily introduce other linters in follow-ups, like bashate. Note: pre-commit tool does *not* install any git-hooks. Making commits will will call the tool unless you deliverately tell it to install the hooks. Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/gate/Dockerfile1
-rw-r--r--contrib/snapcraft/.editorconfig2
2 files changed, 2 insertions, 1 deletions
diff --git a/contrib/gate/Dockerfile b/contrib/gate/Dockerfile
index 1939d7ad1..d1e0b967b 100644
--- a/contrib/gate/Dockerfile
+++ b/contrib/gate/Dockerfile
@@ -48,6 +48,7 @@ WORKDIR $GOSRC
RUN set -x && \
make install.tools && \
install -D -m 755 $GOSRC/contrib/gate/entrypoint.sh /usr/local/bin/ && \
+ python3 -m pip install pre-commit && \
rm -rf "$GOSRC"
# Install cni config
diff --git a/contrib/snapcraft/.editorconfig b/contrib/snapcraft/.editorconfig
index 1749b2d4c..89bc6dc80 100644
--- a/contrib/snapcraft/.editorconfig
+++ b/contrib/snapcraft/.editorconfig
@@ -14,4 +14,4 @@ indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
-insert_final_newline = true \ No newline at end of file
+insert_final_newline = true