1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/dist/tools/compile_and_test_for_board/tox.ini
Alexandre Abadie c98fc635fc
tools/compile_and_test_for_board: add black testenv in tox
Add Flake8 and Pylint configuration compatible with black
2021-10-22 10:19:55 +02:00

34 lines
639 B
INI

[tox]
envlist = test,lint,flake8,black
skipsdist = True
[testenv]
basepython = python3
setenv =
script = compile_and_test_for_board.py
commands =
test: {[testenv:test]commands}
lint: {[testenv:lint]commands}
flake8: {[testenv:flake8]commands}
black: {[testenv:black]commands}
[testenv:test]
deps = pytest
commands =
pytest -v --doctest-modules
[testenv:lint]
deps = pylint
commands =
pylint --rcfile=setup.cfg {env:script} tests
[testenv:flake8]
deps = flake8
commands =
flake8 {env:script} tests
[testenv:black]
deps = black
commands =
black --check --diff {env:script} tests