aboutsummaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2023-03-20 10:58:28 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2023-03-20 11:00:18 +0100
commite9ce34165af6597559ee2fa40d611c4d8b0a0534 (patch)
treeca8012a4840007518360eca34114507464788a01 /tox.ini
parent7d08965170d1c2f1920a7220a9877859156fab28 (diff)
Run pre-commit in the Functest K8s gates
Change-Id: I3957dbde922d8ed8edc47d5cf1aee1475f117836 Co-authored-by: Guillaume Lambert <guillaume.lambert@orange.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 8bd1c09890c7c1fff392572de709a0ccc6a283b6)
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini5
1 files changed, 5 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index ac898d93..313ef2b6 100644
--- a/tox.ini
+++ b/tox.ini
@@ -56,3 +56,8 @@ commands =
-exec ls -l \{\} + | grep '.' && exit 1 || exit 0"
bash -c "\
find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"
+
+[testenv:pre-commit]
+basepython = python3.10
+commands =
+ pre-commit run --all-files --show-diff-on-failure