1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/dist/pythonlibs/riotctrl_shell/tox.ini
Alexandre Abadie f2bb9242bb
pythonlib/riotctrl_shell: add black testenv in tox
Add Flake8 configuration compatible with black
2021-10-22 10:25:15 +02:00

30 lines
505 B
INI

[tox]
envlist = test,flake8,black
skipsdist = True
[testenv]
commands =
test: {[testenv:test]commands}
flake8: {[testenv:flake8]commands}
black: {[testenv:black]commands}
[testenv:test]
deps =
pytest
-rrequirements.txt
commands =
pytest -v --doctest-modules
[testenv:flake8]
deps = flake8
commands =
flake8 .
[testenv:black]
allowlist_externals =
/usr/bin/bash
/bin/bash
deps = black
commands =
bash -c "black --check --diff --color tests/ *.py"