Axel Andersson 816553f1bc Added powertrain-build entrypoint
The entrypoint will make it easier to install powertrain-build to an
isolated venv without having to call python -m powertrain_build.

Change-Id: I3850c97d17707f9bc03640bd1d997508637d97ba
2024-10-30 10:33:42 +01:00

54 lines
767 B
INI

[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