forked from rcbops/openstack-ops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
45 lines (37 loc) · 1.19 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
[tox]
minversion = 2.0
skipsdist = True
envlist = ansible-lint
[testenv]
passenv = ANSIBLE_VERSION
basepython = python2.7
whitelist_externals =
bash
sed
deps =
-rtest-requirements.txt
ansible{env:ANSIBLE_VERSION:==2.2.2}
setenv =
ANSIBLE_ACTION_PLUGINS = {homedir}/.ansible/roles/plugins/action
ANSIBLE_CALLBACK_PLUGINS = {homedir}/.ansible/roles/plugins/callback
ANSIBLE_FILTER_PLUGINS = {homedir}/.ansible/roles/plugins/filter
ANSIBLE_LOOKUP_PLUGINS = {homedir}/.ansible/roles/plugins/lookup
ANSIBLE_LIBRARY = {homedir}/.ansible/roles/plugins/library
ANSIBLE_ROLES_PATH = {homedir}/.ansible/roles
# environment used by the -infra templated docs job
[testenv:venv]
deps = -r{toxinidir}/test-requirements.txt
commands = {posargs}
#[testenv:flake8#]
#commands =
# {toxinidir}/scripts/linting-pep8.sh
[testenv:ansible-lint]
commands =
{toxinidir}/scripts/ansible-lint.sh
[flake8]
# Ignores the following rules due to how ansible modules work in general
# F403 'from ansible.module_utils.basic import *' used; unable to detect undefined names
# H303 No wildcard (*) import.
# R excludes all of the RPC specific checks
ignore=F403,H303,R
#exclude=