Add pre-commit checks to the repo
https://pre-commit.com/ is a great tool to validate and lint your commits before you push them to the pipeline.
Todo
- From the top of my head we could use the following hooks:
- ansible
- k8s resources
-
hadolint for Dockerfile -
yaml - python linters
- ... ?
- Docuent how to setup/use pre-commit
- Run pre-commit in the pipeline (as a backup safety-net when somebody's pre-commit installation breaks)
Edited by Varac