fix #3
This commit is contained in:
parent
a37bb67520
commit
30cca781ce
1 changed files with 8 additions and 8 deletions
|
@ -4,7 +4,6 @@ before_script:
|
|||
- python --version
|
||||
- python -m pip install --upgrade pip
|
||||
- pip install -r requirements.txt
|
||||
- pip install -r dev_requirements.txt
|
||||
|
||||
stages:
|
||||
- lint
|
||||
|
@ -14,30 +13,31 @@ flake8:
|
|||
stage: lint
|
||||
allow_failure: true
|
||||
script:
|
||||
- flake8 --max-line-length=120 --count --select=E9,F63,F7,F82 --show-source --statistics src/python/ddadevops/*.py
|
||||
- flake8 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics src/python/ddadevops/*.py
|
||||
- pip install -r dev_requirements.txt
|
||||
- flake8 --max-line-length=120 --count --select=E9,F63,F7,F82 --show-source --statistics src/main/python/ddadevops/*.py
|
||||
- flake8 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics src/main/python/ddadevops/*.py
|
||||
|
||||
mypy:
|
||||
stage: lint
|
||||
allow_failure: true
|
||||
script:
|
||||
- python -m mypy src/python/ddadevops/*.py
|
||||
- python -m mypy src/python/ddadevops/*.py
|
||||
- pip install -r dev_requirements.txt
|
||||
- python -m mypy src/main/python/ddadevops/*.py
|
||||
|
||||
pylint:
|
||||
stage: lint
|
||||
allow_failure: true
|
||||
script:
|
||||
- pylint -d C0301 src/python/ddadevops/*.py
|
||||
- pip install -r dev_requirements.txt
|
||||
- pylint -d C0301 src/main/python/ddadevops/*.py
|
||||
|
||||
pypi-dev:
|
||||
stage: upload
|
||||
rules:
|
||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||
when: never
|
||||
- if: '$CI_COMMIT_TAG !~ /^release-.*$/'
|
||||
- if: '$CI_COMMIT_BRANCH == "main" && $CI_COMMIT_TAG !~ /^release-.*$/'
|
||||
script:
|
||||
- pip install -r requirements.txt
|
||||
- pyb publish upload
|
||||
|
||||
pypi-stable:
|
||||
|
|
Loading…
Reference in a new issue