summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorPaul Ganssle <1377457+pganssle@users.noreply.github.com>2022-12-03 15:07:04 -0500
committerGitHub <noreply@github.com>2022-12-03 15:07:04 -0500
commitb04edc08aa3559063b3b097f437941d8c4b84aba (patch)
tree174b2ef9fbd215ad01d123df9034d138a9de3f57 /tox.ini
parente8151c15172620d8d55e410f9297564368c886bf (diff)
parentc73a9b183ff0aa2ab2ac8c7c52b61ac6081b6eed (diff)
downloaddateutil-git-b04edc08aa3559063b3b097f437941d8c4b84aba.tar.gz
Merge pull request #1248 from pganssle/add-pre-commitHEADmaster
Add pre commit
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.