05acd5e750
This change adds tox jobs that lint and test python code. Together with the job definition and configuration, this change adds some dummy directories and tests that should be replaced once the actual code for this repo is migrated. Change-Id: Iaa201562faf2dbee0647b3366d6d0c5ece0561d0
26 lines
370 B
INI
26 lines
370 B
INI
[tox]
|
|
skipsdist = True
|
|
requires =
|
|
tox >= 2.0
|
|
|
|
[flake8]
|
|
exclude =
|
|
.git,
|
|
__pycache__,
|
|
*.pyc,
|
|
.cache,
|
|
.tox
|
|
max-line-length = 120
|
|
|
|
[testenv]
|
|
platform = linux
|
|
basepython = python3
|
|
deps =
|
|
-rtest-requirements.txt
|
|
|
|
[testenv:flake8]
|
|
commands = flake8 powertrain_build tests
|
|
|
|
[testenv:pytest]
|
|
commands = python -m pytest tests
|