-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
68 lines (62 loc) · 1.83 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[tox]
skipsdist = true
minversion = 3.9.0
envlist =
lint
docs
packaging
; py{39,310,311,312}-{ansible_2}
py{39,310,311,312}-{ansible_3}
py{39,310,311,312}-{ansible_4}
py{39,310,311,312}-{ansible_5}
py{39,310,311,312}-{ansible_6}
py{39,310,311,312}-{ansible_7}
py{39,310,311,312}-{ansible_8}
toxworkdir={env:TOX_WORK_DIR:.tox}
# do not enable skip missing to avoid CI false positives
skip_missing_interpreters = False
isolated_build = True
[testenv]
# do not put * in passenv as it may break builds do to reduced isolation
passenv =
CI
GITHUB_*
HOME
PYTEST_*
setenv =
ANSIBLE_CONFIG={toxinidir}/dev/null
ANSIBLE_CALLABLE_WHITELIST={env:ANSIBLE_CALLABLE_WHITELIST:timer,profile_roles}
ANSIBLE_DISPLAY_FAILED_STDERR=1
ANSIBLE_VERBOSITY=1
PYTHONUNBUFFERED=1
ANSIBLE_FORCE_COLOR=1
ANSIBLE_CALLBACK_PLUGINS=./plugins/callback/
ANSIBLE_VERBOSE_TO_STDERR=True
deps =
; py{39,310,311,312}-{ansible_2}: ansible>=2.10,<3.0
py{39,310,311,312}-{ansible_3}: ansible>=3.0,<4.0
py{39,310,311,312}-{ansible_4}: ansible>=4.0,<5.0
py{39,310,311,312}-{ansible_5}: ansible>=5.0,<6.0
py{39,310,311,312}-{ansible_6}: ansible>=6.0,<7.0
py{39,310,311,312}-{ansible_7}: ansible>=7.0,<8.0
py{39,310,311,312}-{ansible_8}: ansible>=8.0,<9.0
py{39,310,311,312}-{ansible_9}: ansible>=9.0,<10.0
extras =
lint
test
commands =
# failsafe as pip may install incompatible dependencies
ansible-playbook -i tests/hosts tests/testplay.yml -D
allowlist_externals = ansible-playbook
[testenv:lint]
description = Runs all linting tasks
commands =
python3 -m pylint plugins/callback/caradoc.py -d=C,R,W
python3 -m flake8 --extend-ignore E501,W605 plugins/callback/caradoc.py
deps =
ansible>=8.0,<9.0
pylint
flake8
extras =
skip_install = true
usedevelop = True