aboutsummaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2023-03-17 14:59:24 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2023-03-20 10:55:06 +0100
commit40cfa2beecdd6be230848104b6307a87daba67d7 (patch)
tree4c39e832869a92c96b06fef7dc9fb9bc09f96aa0 /tox.ini
parentac55c054804657e4e3503cfe668c3a8ef23c424c (diff)
Run pre-commit in the Xtesting gates
Change-Id: I691d0982b8e8f70afce622950c6b27a47e2bb417 Co-authored-by: Guillaume Lambert <guillaume.lambert@orange.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit d3414f80fa9a89cb5df9c06b94171ad6c3a57f84)
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini7
1 files changed, 6 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index a9edfd95..0ec3ebcc 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = docs,pep8,pylint,yamllint,bashate,py310,cover,perm
+envlist = docs,pep8,pylint,yamllint,bashate,py310,cover,perm,pre-commit
skipsdist = True
[testenv]
@@ -74,3 +74,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