Skip to content
Snippets Groups Projects
Verified Commit aa619e7e authored by Duncan Macleod's avatar Duncan Macleod
Browse files

ci: always pass flake8

but make sure and review the code quality report!
parent 937dc8bc
No related branches found
No related tags found
No related merge requests found
......@@ -21,15 +21,20 @@ flake8:
# https://computing.docs.ligo.org/gitlab-ci-templates/python/#.python:flake8
- .python:flake8
needs: []
variables:
# don't fail the pipeline because of linting issues,
# these are presented in the code-quality box in the
# merge_request UI
FLAKE8_OPTIONS: "--exit-zero"
before_script:
# pick requirements out of the setup.cfg
# pick requirements out of the metadata
- |
REQUIREMENTS=$(python -c "
from configparser import ConfigParser;
cp = ConfigParser();
cp.read('setup.cfg');
print(cp['options.extras_require']['lint'].strip())")
REQUIREMENTS=$(${PYTHON} -c "
from setuptools import Distribution
dist = Distribution()
dist.parse_config_files()
for req in dist.extras_require['lint']:
print(req)
")
# install things
- !reference [".python:flake8", before_script]
# code quality issues should present a global 'warning'
allow_failure: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment