2019-09-25 02:55:16 +03:00
|
|
|
[tox]
|
2019-10-30 22:51:32 +03:00
|
|
|
envlist = default_config, custom_config, flake8
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
basepython = python3.7
|
|
|
|
deps = -rmoziris/test/requirements/tests.txt
|
|
|
|
setenv =
|
|
|
|
DISPLAY=:99.0
|
|
|
|
XAUTH=$HOME/.Xauthority
|
|
|
|
IRIS_CODE_ROOT=/iris
|
|
|
|
PYTHONPATH=/iris
|
|
|
|
|
|
|
|
[testenv:default_config]
|
|
|
|
commands = pytest moziris/test/configuration/test_iris_default_config.py -vs
|
|
|
|
|
|
|
|
[testenv:custom_config]
|
|
|
|
commands = pytest moziris/test/configuration/test_iris_custom_config.py -vs
|
2019-09-25 02:55:16 +03:00
|
|
|
|
|
|
|
[testenv:flake8]
|
|
|
|
basepython = python3.7
|
2019-10-30 22:51:32 +03:00
|
|
|
deps = -rmoziris/test/requirements/flake8.txt
|
2019-09-25 02:55:16 +03:00
|
|
|
commands = flake8 --count
|
|
|
|
|
|
|
|
[flake8]
|
|
|
|
max-line-length = 120
|
|
|
|
# W503 = no line break before binary operator
|
|
|
|
# E203 = no whitespace before ':'
|
|
|
|
# E722 = do not use bare 'except'
|
|
|
|
# F401 = PACKAGE_NAME imported but unused
|
|
|
|
# F403 = star import used; unable to detect undefined names
|
|
|
|
# F405 [module] may be undefined, or defined from star imports
|
|
|
|
ignore = W503, E203, E722, F401, F403, F405
|