mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-03-26 21:33:02 +00:00
automated changes for black formatting (#611)
This commit is contained in:
12
tox.ini
12
tox.ini
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user