collection 교체

This commit is contained in:
정훈 변
2024-02-23 16:37:40 +09:00
parent b494779b5b
commit 3fd554eee9
38862 changed files with 220204 additions and 6600073 deletions

View File

@@ -2,6 +2,9 @@
minversion = 1.4.2
skipsdist = True
[common]
format_dirs = {toxinidir}/plugins {toxinidir}/tests
[testenv:integration]
install_command = pip install {opts} {packages}
@@ -19,23 +22,41 @@ commands=
deps = git+https://github.com/ansible-network/collection_prep
commands = collection_prep_add_docs -p .
[testenv:black]
[testenv:black_check]
deps =
black==19.10b0
black >= 22.0, < 23.0
commands =
black -v --check --diff {toxinidir}/plugins {toxinidir}/tests
[testenv:black]
depends =
flynt, isort
deps =
black >=23.0, <24.0
commands =
black -v {[common]format_dirs}
[testenv:isort]
deps =
isort
commands =
isort --profile black {[common]format_dirs}
[testenv:flynt]
deps =
flynt
commands =
flynt {[common]format_dirs}
[testenv:linters]
deps =
yamllint
flake8
black==19.10b0
{[testenv:black]deps}
{[testenv:isort]deps}
flake8
yamllint
commands =
black -v --check --diff {toxinidir}/plugins {toxinidir}/tests
black -v --check {toxinidir}/plugins {toxinidir}/tests
isort --profile black --check-only --diff {toxinidir}/plugins {toxinidir}/tests
flake8 {posargs} {toxinidir}/plugins {toxinidir}/tests
yamllint -s {toxinidir}
flake8 {toxinidir}
[flake8]
exclude = .git,.tox,tests/output