fix(CI): compacted the linting stage

This commit is contained in:
Laureηt 2021-11-02 21:39:50 +01:00
parent 56b49b4a03
commit 337a0618b9
No known key found for this signature in database
GPG key ID: D88C6B294FD40994
2 changed files with 7 additions and 37 deletions

View file

@ -8,5 +8,5 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.{yaml,toml}]
[*.{yaml,yml,toml}]
indent_size = 2

View file

@ -1,41 +1,11 @@
stages:
- lint
pre-commit:
stage: lint
image: python:latest
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:
- pre-commit run flake8 --all-files
bandit:
stage: lint
script:
- pre-commit run bandit --all-files
- pre-commit run --all-files