aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-11-06 19:36:21 +0100
committerGravatar Johannes Christ <[email protected]>2018-11-06 19:36:21 +0100
commit8ebe1bae062ebc84559dc396a139a7dec4363ccc (patch)
treec41a452fa8915be0117b2fb5baaf672d8274cddb /.gitlab-ci.yml
parentInstall `gcc` for `psycopg2`. (diff)
Extract lint dependencies from `setup.py`.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml3
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: