* Subprocess().Popen() -> Subprocess().popen() per PEP-8 conventions * Move cosmos_error out of class because it isn't a member function per PEP-8 * Add pep8-naming plugin to flake8 so PEP-8 errors are caught during syntax checks
33 lines
519 B
INI
33 lines
519 B
INI
[tox]
|
|
envlist = py34-syntax, py34-unit
|
|
|
|
[flake8]
|
|
application-import-names=dcos
|
|
import-order-style=smarkets
|
|
|
|
[testenv]
|
|
deps =
|
|
mock
|
|
pytest
|
|
pytest-cov
|
|
teamcity-messages
|
|
|
|
passenv =
|
|
DCOS_*
|
|
CI_FLAGS
|
|
CLI_TEST_SSH_KEY_PATH
|
|
TEAMCITY_VERSION
|
|
|
|
[testenv:py34-syntax]
|
|
deps =
|
|
flake8
|
|
flake8-import-order
|
|
pep8-naming
|
|
|
|
commands =
|
|
flake8 --verbose {env:CI_FLAGS:} dcos tests setup.py
|
|
|
|
[testenv:py34-unit]
|
|
commands =
|
|
py.test -p no:cacheprovider -vv {env:CI_FLAGS:} --cov {envsitepackagesdir}/dcos tests{posargs}
|