aboutsummaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorguillaume.lambert <guillaume.lambert@orange.com>2022-07-07 19:59:38 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2023-03-27 18:00:24 +0200
commit43823bba039100d09a0820c820cd725e1d14b69e (patch)
treef0da9e8f3e1eb1da05fd7f35ec584a45562f4569 /tox.ini
parentf4e7eb0eb220b4504c49470c894e8ffcf483f978 (diff)
Use pre-commit in CI to fix trailing blanks & tabs
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com> Change-Id: I7e2d918ced690624df44ef8a84df865aa8505b40 (cherry picked from commit beaf6055d77b00dc4ff90165512d2877afc7b79d)
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 a04067d80..f9c99247e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = docs,pep8,pylint,yamllint,bashate,bandit,py310,cover,perm
+envlist = docs,pep8,pylint,yamllint,bashate,bandit,py310,cover,perm,pre-commit
[testenv]
pip_version = pip==20.2.4
@@ -92,3 +92,8 @@ commands =
-exec ls -l \{\} + | grep '.' && exit 1 || exit 0"
sh -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