ci: add pre-commit
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
ea9a1d785a
commit
56359109a9
1 changed files with 11 additions and 0 deletions
|
@ -8,3 +8,14 @@ pages:
|
||||||
- public
|
- public
|
||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
|
pre-commit:
|
||||||
|
variables:
|
||||||
|
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- ${PRE_COMMIT_HOME}
|
||||||
|
image: registry.gitlab.com/yesolutions/docker-pre-commit
|
||||||
|
script:
|
||||||
|
- pip install pre-commit
|
||||||
|
- pre-commit run --all-files
|
||||||
|
|
Loading…
Reference in a new issue