Debian Codegraph @

ansible_collections/kubernetes/core/tox.ini

raw symbols SCIP
1 [tox]
2 minversion = 1.4.2
3 skipsdist = True
4
5 [common]
6 format_dirs = {toxinidir}/plugins {toxinidir}/tests
7
8 [testenv:integration]
9 install_command = pip install {opts} {packages}
10
11 deps = -r{toxinidir}/requirements.txt
12 -r{toxinidir}/test-requirements.txt
13 https://github.com/ansible/ansible/archive/devel.tar.gz
14
15 passenv =
16 HOME
17
18 commands=
19 ansible-test integration -v --color --retry-on-error --diff --coverage --continue-on-error --python {posargs}
20
21 [testenv:add_docs]
22 deps = git+https://github.com/ansible-network/collection_prep
23 commands = collection_prep_add_docs -p .
24
25 [testenv:black_check]
26 deps =
27 black >= 22.0, < 23.0
28
29 commands =
30 black -v --check --diff {toxinidir}/plugins {toxinidir}/tests
31
32 [testenv:black]
33 depends =
34 flynt, isort
35 deps =
36 black >=23.0, <24.0
37 commands =
38 black -v {[common]format_dirs}
39
40 [testenv:isort]
41 deps =
42 isort
43 commands =
44 isort --profile black {[common]format_dirs}
45
46 [testenv:flynt]
47 deps =
48 flynt
49 commands =
50 flynt {[common]format_dirs}
51
52 [testenv:linters]
53 deps =
54 {[testenv:black]deps}
55 {[testenv:isort]deps}
56 flake8
57 yamllint
58 commands =
59 black -v --check {toxinidir}/plugins {toxinidir}/tests
60 isort --profile black --check-only --diff {toxinidir}/plugins {toxinidir}/tests
61 flake8 {posargs} {toxinidir}/plugins {toxinidir}/tests
62 yamllint -s {toxinidir}