8 jenkins-job-builder=={env:JJB_VERSION:6.0.0}
10 jenkins-jobs {posargs:--help}
13 commands = python {toxinidir}/check_jjb_version.py
15 [testenv:pre-commit-install]
20 pre-commit install --hook-type commit-msg
22 [testenv:pre-commit-uninstall]
27 pre-commit uninstall --hook-type commit-msg
34 pre-commit run --all-files --show-diff-on-failure
35 pre-commit run gitlint --hook-stage commit-msg --commit-msg-filename .git/COMMIT_EDITMSG
36 # Gitlint only proposes a pre-commit configuration for the commit-msg stage but none for the commit stage.
37 # Its default arguments --passed and --msg-filename are different from CI recommandations.
38 # As a result, the line above is always skipped in jenkins CI since there cannot be a .git/COMMIT_EDITMSG file.