diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1bc87f19a75ebeec1b0f4efc381c15a59272730c..782494a5d52cc499d62054ea66255ed3c7df9dc0 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 refscrub + python3.6: image: python:3.6 tags: diff --git a/tox.ini b/tox.ini index bf6c0725b91a09d47ebc02bcfec374415d4ecfc9..90a1bcaedb744359310e321f0e074a66af3055de 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 refscrub [testenv] commands = python -m unittest