Run pre-commit into the CI
Would allow to run the same versions of the development tools in different environments: dev env, CI.
It would avoid the issue of having the dev tools updated when updating the images and not of same version as the ones from pre-commit
. They would all be updated for all environments when updating .pre-commit-config.yaml
.
https://pre-commit.com/#usage-in-continuous-integration
CI
- Set up cache for pre-commit to speed-up jobs
- Run jobs with pre-commit
Image generation
-
Install
pre-commit
andgit
(required bypre-commit
) in3.9
image -
Uninstall no longer necessary dev tools from
3.8
image, once the migration has been completed