[tox] requires = tox >= 2.0 envlist = flake8 pytest functest [flake8] exclude = .git, __pycache__, *.pyc, .cache, .tox max-line-length = 120 [testenv] platform = linux basepython = python3 deps = -rrequirements.txt -rtest-requirements.txt [testenv:flake8] commands = flake8 powertrain_build tests [testenv:pytest] commands = coverage run -m pytest tests coverage report coverage html [coverage:run] branch = True source_pkgs = powertrain_build [coverage:report] skip_empty = true omit = */__main__.py exclude_lines = if __name__ == .__main__.: [coverage:html] directory = cover [testenv:functest] skipsdist = False package = editable commands = pytest tests/powertrain_build/func_cli.py