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: ...@@ -21,15 +21,20 @@ flake8:
# https://computing.docs.ligo.org/gitlab-ci-templates/python/#.python:flake8 # https://computing.docs.ligo.org/gitlab-ci-templates/python/#.python:flake8
- .python:flake8 - .python:flake8
needs: [] 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: before_script:
# pick requirements out of the setup.cfg # pick requirements out of the metadata
- | - |
REQUIREMENTS=$(python -c " REQUIREMENTS=$(${PYTHON} -c "
from configparser import ConfigParser; from setuptools import Distribution
cp = ConfigParser(); dist = Distribution()
cp.read('setup.cfg'); dist.parse_config_files()
print(cp['options.extras_require']['lint'].strip())") for req in dist.extras_require['lint']:
print(req)
")
# install things # install things
- !reference [".python:flake8", before_script] - !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