Files
powertrain-build/tox.ini
Henrik Wahlqvist 7307c20ae7 Add test_data to flake8, fixing current issues
Change-Id: I25bae588edfe075ba0437a24584c9a14894e1f27
2025-08-27 12:40:59 +02:00

54 lines
777 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 test_data
[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