1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 10:12:45 +01:00

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.
This commit is contained in:
Gaëtan Harter 2019-01-25 18:58:42 +01:00
parent 493cac27f3
commit 9af491d2f6
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B
2 changed files with 34 additions and 0 deletions

2
dist/tools/backport_pr/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
# tox envs directory
.tox

32
dist/tools/backport_pr/tox.ini vendored Normal file
View File

@ -0,0 +1,32 @@
[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}