Skip to content
Snippets Groups Projects
Verified Commit fbd5ed8c authored by jooola's avatar jooola
Browse files

ci: add pre-commit job

parent 91a7f42b
No related branches found
No related tags found
1 merge request!56chore: add pre commit
Pipeline #26495 passed with stages
in 9 minutes and 6 seconds
stages:
- lint
- test
- build
......@@ -9,6 +10,21 @@ variables:
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
pre-commit:
stage: lint
image: python:3.11
variables:
PIP_CACHE_DIR: $CI_PROJECT_DIR/.cache/pip
PRE_COMMIT_HOME: $CI_PROJECT_DIR/.cache/pre-commit
cache:
paths:
- $PIP_CACHE_DIR
- $PRE_COMMIT_HOME
before_script:
- pip3 install pre-commit
script:
- pre-commit run --verbose --all --color=always --show-diff-on-failure
tests:
stage: test
services:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment