Compare commits

..

6 Commits

3 changed files with 29 additions and 9 deletions

8
.gitignore vendored
View File

@ -1,6 +1,10 @@
# Editor swap files
*~* *~*
*.swp *.swp
*.tmp *.tmp
wwwuser
openbox/* # .gitlab-ci.yml pre-commit directory
.cache/**
# Symlink
install.run install.run

16
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,16 @@
# 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
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}

View File

@ -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