From 8ebe1bae062ebc84559dc396a139a7dec4363ccc Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Tue, 6 Nov 2018 19:36:21 +0100 Subject: Extract lint dependencies from `setup.py`. --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3