Commit 30e16ed7 authored by ∞'s avatar 💻

Enable tox.ini

parent ae021884
Pipeline #552 failed with stage
in 33 seconds
variables:
DJANGO_SETTINGS_MODULE: chp.django.example.settings
DEBUG: 1
#activate the following when we cleanup the code
#py-qa:
# stage: build
# image: yourlabs/python
# script: flake8 --show-source --max-complexity=8 --ignore=E305 chp
# script: tox -e qa
py-test:
stage: test
image: yourlabs/python
script:
- pip3 install django crudlfap
- pip3 install -e .
- py.test --cov chp
- tox -e py
......@@ -25,10 +25,12 @@ setup(
tests_require=['tox'],
extras_require=dict(
dev=[
'django>=2.1rc1',
'django>=2.1',
'crudlfap',
],
test=[
'pytest',
'pytest-cov',
'pytest-django',
'pytest-mock',
'mock',
......
[tox]
envlist = py{36}-dj{21}
[testenv]
[testenv:py]
usedevelop = true
commands =
pip install -e {toxinidir}[dev,test]
py.test -vv --cov src --strict -r fEsxXw src {posargs}
py.test -vv --cov chp --strict -r fEsxXw {posargs:chp}
setenv =
DEBUG=1
......@@ -15,13 +12,11 @@ setenv =
[testenv:qa]
commands =
flake8 --show-source --max-complexity=8 --exclude migrations src/ --builtins=ModuleNotFoundError
flake8 --show-source --max-complexity=8 --exclude migrations chp --builtins=ModuleNotFoundError
deps =
flake8<3
mccabe
flake8-debugger
flake8-import-order
flake8-putty
pep8-naming
[testenv:docs]
......@@ -31,15 +26,10 @@ commands =
make html
whitelist_externals =
make
deps =
django-extensions
django-reversion
devpy
dj-static
[flake8]
exclude = crudlfap_example
putty-auto-ignore = true
putty-ignore =
crudlfap/shortcuts.py : F401
crudlfap/test_routers.py : D
; exclude = crudlfap_example
; putty-auto-ignore = true
; putty-ignore =
; crudlfap/shortcuts.py : F401
; crudlfap/test_routers.py : D
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment