Files
toallab-automation/roles/ansible-network.network-engine/tox.ini
Patrick Toal 6e2205a046 Adding Netbox
2019-05-06 00:34:45 -04:00

32 lines
688 B
INI

[tox]
minversion = 1.6
skipsdist = True
envlist = linters,py27,py36,py37
[testenv]
install_command = pip install {opts} {packages}
commands =
ansible-playbook -i tests/inventory tests/test.yml
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
setenv =
ANSIBLE_CALLBACK_PLUGINS = {envsitepackagesdir}/ara/plugins/callbacks
[testenv:linters]
basepython = python3
commands =
yamllint -s .
flake8 {posargs}
[testenv:venv]
commands = {posargs}
[flake8]
# TODO(pabelanger): Follow sane flake8 rules for galaxy and sync across all of
# ansible-network.
ignore = E125,E402
max-line-length = 160
show-source = True
exclude = .venv,.tox,dist,doc,build,*.egg