Skip to content
Snippets Groups Projects
tox.ini 890 B
[tox]
envlist = lint, deadcode, test
toxworkdir = /tmp/tox_workdir
temp_dir = /tmp/tox_tmp


skipsdist = true

[flake8]
# https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
# Ignored errors:
# - E501: line too long
# - E265: block comment should start with '# ' (makes it easier to enable/disable code)
# - W503: line break before binary operator (deprecated rule)
# - W505: doc line too long
ignore = E501,E265,W503,W505
exclude = .tox/,.git/,.virtualenv/,__pycache__/,build/,dist/

[vulture]
parameters = --exclude tests/ --min-confidence 90

[pytest]
addopts = --verbose --tb=long --showlocals --color=yes --cov=pod_client
testpaths = pod_client

[testenv:lint]
deps = flake8
commands = flake8

[testenv:deadcode]
deps = vulture
commands = vulture . {[vulture]parameters}

[testenv:test]
deps =
    pytest >= 4.5.0
    pytest-cov >= 2.7.1
    requests
commands = pytest