summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini10
1 files changed, 10 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index c5f63cb..a03e480 100644
--- a/tox.ini
+++ b/tox.ini
@@ -68,6 +68,16 @@ source = dateutil
skip_covered = True
show_missing = True
+[testenv:precommit]
+description = Run the pre-commit hooks on all files
+passenv =
+ PRE_COMMIT*
+deps =
+ pre-commit
+commands =
+ pre-commit install -f --install-hooks
+ pre-commit run --all-files
+
[testenv:tz]
# Warning: This will modify the repository and is only intended to be run
# as part of the CI process, not locally.