Add linters

This commit is contained in:
Ruben van Staveren 2024-07-31 15:49:41 +02:00
parent a64d17b2e8
commit dd68fd4ead
Signed by: ruben
GPG Key ID: 886F6BECD477A93F

View File

@ -1,3 +1,31 @@
---
run pylint:
stage: test
image: python:3.9
script:
- pip install --upgrade pylint
- pylint $(git ls-files '*.py')
tags:
- docker
run flake8:
stage: test
image: python:3.9
script:
- pip install --upgrade flake8
- flake8 $(git ls-files '*.py')
tags:
- docker
run mypy:
stage: test
image: python:3.9
script:
- pip install --upgrade mypy
- mypy --install-types --non-interactive $(git ls-files '*.py')
tags:
- docker
run tests:
stage: test
image: python:3.9