diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1bc87f19a75ebeec1b0f4efc381c15a59272730c..98ff46b54f845720bf8d4030373eca9eccd53c02 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,6 +20,14 @@ stages: before_script: - pip install -e .[dev] +linting: + image: python:3.6 + tags: + - passoft + stage: test + script: + - flake8 --ignore=F403,F405,F821,F841,W504 fixhdr + python3.6: image: python:3.6 tags: diff --git a/tox.ini b/tox.ini index bf6c0725b91a09d47ebc02bcfec374415d4ecfc9..dfe02e14a70ba8c17d832fd98e09ce2bc0fdb691 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,10 @@ [tox] -envlist = py36, py37, py38 +envlist = py36, py37, py38, flake8 + +[testenv:flake8] +basepython = python +deps = flake8 +commands = flake8 --ignore=F403,F405,F821,F841,W504 fixhdr [testenv] commands = python -m unittest