diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 16:03:42 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 16:03:42 +0000 |
commit | 66cec45960ce1d9c794e9399de15c138acb18aed (patch) | |
tree | 59cd19d69e9d56b7989b080da7c20ef1a3fe2a5a /ansible_collections/cloud/common/tox.ini | |
parent | Initial commit. (diff) | |
download | ansible-upstream.tar.xz ansible-upstream.zip |
Adding upstream version 7.3.0+dfsg.upstream/7.3.0+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/cloud/common/tox.ini')
-rw-r--r-- | ansible_collections/cloud/common/tox.ini | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/ansible_collections/cloud/common/tox.ini b/ansible_collections/cloud/common/tox.ini new file mode 100644 index 00000000..77919343 --- /dev/null +++ b/ansible_collections/cloud/common/tox.ini @@ -0,0 +1,38 @@ +[tox] +minversion = 1.4.2 +envlist = linters +skipsdist = True + +[testenv] +deps = -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt +install_command = pip install {opts} {packages} + +[testenv:black] +deps = black +commands = + black {toxinidir}/plugins {toxinidir}/tests/unit/ + +[testenv:linters] +install_command = pip install {opts} {packages} +deps = + black + flake8 +commands = + black -v --check {toxinidir}/plugins {toxinidir}/tests/unit/ + flake8 {posargs} {toxinidir}/plugins {toxinidir}/tests/unit/ + +[flake8] +# E123, E125 skipped as they are invalid PEP-8. +show-source = True +ignore = E123,E125,E203,E402,E501,E741,F401,F811,F841,W503 +max-line-length = 160 +builtins = _ +exclude = .git,.tox,tests/unit/compat/ + +[testenv:antsibull-changelog] +deps = + ansible-core==2.11.* + antsibull-changelog +commands = + antsibull-changelog {posargs} |