2 envlist = py27-pytest,pylint
9 PYTHONPATH = {toxinidir}/src
10 COVERAGE_FILE = .coverage{envname}
12 passenv = COVERAGE_FILE
14 commands = /bin/cp -R {toxinidir}/tests/mocked_dependencies/serviceprofiles {toxworkdir}/py27-pytest/lib/python2.7/site-packages/
16 --basetemp={envtmpdir} \
18 --cov cmdatahandlers.performance_profiles \
19 --cov-config .coveragerc \
21 --cov-report term-missing \
22 --cov-report html:htmlcov \
35 # more-itertools above version 5.0.0 down not support Python 2.7
39 cache_dir = .pytest-cache
40 pep8maxlinelength = 100
41 pep8ignore = src/setup.py ALL
42 src/cmdatahandlers/api/* ALL
43 src/cmdatahandlers/has/* ALL
44 src/cmdatahandlers/hosts/* ALL
45 src/cmdatahandlers/localstorage/* ALL
46 src/cmdatahandlers/network_profiles/* ALL
47 src/cmdatahandlers/networking/* ALL
48 src/cmdatahandlers/openstack/* ALL
49 src/cmdatahandlers/storage_profiles/* ALL
50 src/cmdatahandlers/time/* ALL
51 src/cmdatahandlers/users/* ALL
55 commands = /bin/cp -R {toxinidir}/tests/mocked_dependencies/serviceprofiles {toxworkdir}/pylint/lib/python2.7/site-packages/
56 -pylint --rcfile={toxinidir}/pylintrc {posargs:cmdatahandlers.performance_profiles}