mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-23 03:02:52 +01:00
17 lines
443 B
YAML
17 lines
443 B
YAML
# Based on https://pre-commit.com
|
|
image: python:alpine
|
|
gitlab-ci-pre-commit:
|
|
stage: build
|
|
before_script:
|
|
- apk add --no-cache git gcc musl-dev go
|
|
- pip install pre-commit --break-system-packages
|
|
script:
|
|
- pre-commit run --all-files --show-diff-on-failure
|
|
variables:
|
|
# Remember to gitignore .cache/**
|
|
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
|
|
TERM: dumb
|
|
cache:
|
|
paths:
|
|
- ${PRE_COMMIT_HOME}
|