mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 12:49:26 +01:00
add .gitlab-ci.yml and pre-commit configuration
This commit is contained in:
parent
d6bb4e712b
commit
4fcc867d13
15
.gitlab-ci.yml
Normal file
15
.gitlab-ci.yml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# Based on https://pre-commit.com
|
||||||
|
image: python:alpine
|
||||||
|
gitlab-ci-pre-commit:
|
||||||
|
stage: build
|
||||||
|
before_script:
|
||||||
|
- apk update && apk add git gcc musl-dev
|
||||||
|
- pip install pre-commit
|
||||||
|
script:
|
||||||
|
- pre-commit run --all-files --show-diff-on-failure
|
||||||
|
variables:
|
||||||
|
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
|
||||||
|
TERM: dumb
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- ${PRE_COMMIT_HOME}
|
@ -43,13 +43,13 @@ repos:
|
|||||||
# - id: mypy
|
# - id: mypy
|
||||||
|
|
||||||
# GitHub Actions etc. configuration validity checking
|
# GitHub Actions etc. configuration validity checking
|
||||||
# - repo: https://github.com/python-jsonschema/check-jsonschema
|
- repo: https://github.com/python-jsonschema/check-jsonschema
|
||||||
# rev: 0.23.0
|
rev: 0.23.0
|
||||||
# hooks:
|
hooks:
|
||||||
#- id: check-dependabot
|
#- id: check-dependabot
|
||||||
#- id: check-github-actions
|
#- id: check-github-actions
|
||||||
#- id: check-github-workflows
|
#- id: check-github-workflows
|
||||||
# - id: check-gitlab-ci
|
- id: check-gitlab-ci
|
||||||
|
|
||||||
# - repo: https://github.com/jumanjihouse/pre-commit-hooks
|
# - repo: https://github.com/jumanjihouse/pre-commit-hooks
|
||||||
# rev: 3.0.0
|
# rev: 3.0.0
|
||||||
|
Loading…
Reference in New Issue
Block a user