1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/dist/tools/backport_pr/tox.ini
Alexandre Abadie 09c7b54704
tools/backport_pr: relax pylint and flake8 checks
- ignore fixme warning with pylint
- increase tolerated code complexity for flake8
2020-07-04 18:25:36 +02:00

35 lines
691 B
INI

[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 =
# Suppress warning about TODO in code
pylint --disable=fixme {env:script}
[testenv:flake8]
deps = flake8
commands =
# main() is quite complex, provide enough margin
flake8 --max-complexity=25 {env:script}