Run 'flake8' and 'yapf' for both Python2 and 3
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>merge-requests/377/head
parent
140180b6b3
commit
c6426139a9
|
@ -21,7 +21,14 @@ static_python:
|
|||
before_script:
|
||||
- pip install tox~=3.8.0
|
||||
script:
|
||||
- tox -e flake8
|
||||
- tox -e "py2-{flake8,yapf}"
|
||||
static_python3:
|
||||
stage: static
|
||||
image: python:3.6
|
||||
before_script:
|
||||
- pip install tox~=3.8.0
|
||||
script:
|
||||
- tox -e "py3-{flake8,yapf}"
|
||||
docs:
|
||||
stage: build
|
||||
image: python:2.7
|
||||
|
|
18
tox.ini
18
tox.ini
|
@ -1,10 +1,5 @@
|
|||
[tox]
|
||||
envlist =
|
||||
flake8
|
||||
yapf
|
||||
pytest
|
||||
py27
|
||||
py36
|
||||
envlist = {py2,py3}-{flake8,yapf},pytest,py2,py3
|
||||
|
||||
[testenv:flake8]
|
||||
deps =
|
||||
|
@ -15,7 +10,16 @@ commands = flake8 \
|
|||
db \
|
||||
auth0login
|
||||
|
||||
[testenv:yapf]
|
||||
[testenv:py2-yapf]
|
||||
deps =
|
||||
yapf
|
||||
skip_install = True
|
||||
commands = yapf -d -r \
|
||||
setup.py \
|
||||
db \
|
||||
auth0login
|
||||
|
||||
[testenv:py3-yapf]
|
||||
deps =
|
||||
yapf
|
||||
skip_install = True
|
||||
|
|
Loading…
Reference in New Issue