diff options
-rw-r--r-- | .gitlab-ci.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 26f8c0d5..075cc6a6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,7 +29,8 @@ lint-python: stage: lint image: python:3.7-alpine before_script: - - python -m pip install flake8 + # Extract lint dependencies from the setup script. + - python -m pip install $(sed -n -e "/'lint': \[/,/]/p" setup.py | tail -n +2 | head -n -1 | cut -d"'" -f2) script: - flake8 tags: |