From dd68fd4eada1e33160e69756a2bdb23388e1e9d7 Mon Sep 17 00:00:00 2001 From: Ruben van Staveren Date: Wed, 31 Jul 2024 15:49:41 +0200 Subject: [PATCH] Add linters --- .gitlab-ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5b27f88..0b99040 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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