Skip to content
Snippets Groups Projects
Unverified Commit 9af491d2 authored by Gaëtan Harter's avatar Gaëtan Harter
Browse files

tools/backport_pr: add tox.ini

Adapt tox file from `compile_and_test_for_board.py`.

`tox` is still not working without errors but gives way to start
refactoring.
parent 493cac27
No related branches found
No related tags found
No related merge requests found
# tox envs directory
.tox
[tox]
envlist = test,lint,flake8
skipsdist = True
[testenv]
basepython = python3
deps = -r {toxinidir}/requirements.txt
setenv =
script = backport_pr.py
commands =
test: {[testenv:test]commands}
lint: {[testenv:lint]commands}
flake8: {[testenv:flake8]commands}
[testenv:test]
deps =
pytest
{[testenv]deps}
commands =
pytest -v --doctest-modules {env:script}
[testenv:lint]
deps =
pylint
{[testenv]deps}
commands =
pylint {env:script}
[testenv:flake8]
deps = flake8
commands =
flake8 --max-complexity=10 {env:script}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment