automated changes for black formatting (#611)

This commit is contained in:
Bikouo Aubin
2023-04-11 14:30:36 +02:00
committed by GitHub
parent ed09047699
commit 560e0e3d40
2 changed files with 23 additions and 6 deletions

12
tox.ini
View File

@@ -19,27 +19,27 @@ commands=
deps = git+https://github.com/ansible-network/collection_prep
commands = collection_prep_add_docs -p .
[testenv:black]
[testenv:black_check]
deps =
black >= 22.0, < 23.0
commands =
black -v --check --diff {toxinidir}/plugins {toxinidir}/tests
[testenv:black_format]
[testenv:black]
deps =
{[testenv:black]deps}
{[testenv:black_check]deps}
commands =
black -v {posargs}
black -v {posargs:{toxinidir}/plugins {toxinidir}/tests}
[testenv:linters]
deps =
yamllint
flake8
{[testenv:black]deps}
{[testenv:black_check]deps}
commands =
{[testenv:black]commands}
{[testenv:black_check]commands}
yamllint -s {toxinidir}
flake8 {toxinidir}