Use pre-commit in CI to fix trailing blanks & tabs
[functest.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index 953cbcc..03ee011 100644 (file)
--- 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