feat: gitlab-ci

This commit is contained in:
Laureηt 2021-11-01 14:42:38 +01:00
parent 12519fb12f
commit 72436a8252
No known key found for this signature in database
GPG key ID: D88C6B294FD40994

View file

@ -7,6 +7,29 @@ before_script:
- pip install pre-commit
- pre-commit install
basic hooks:
stage: lint
script:
- pre-commit run trailing-whitespace --all-files
- pre-commit run end-of-file-fixer --all-files
- pre-commit run check-yaml --all-files
- pre-commit run check-added-large-files --all-files
mypy:
stage: lint
script:
- pre-commit run mypy --all-files
isort:
stage: lint
script:
- pre-commit run isort --all-files
black:
stage: lint
script:
- pre-commit run black --all-files
flake8:
stage: lint
script: