diff --git a/.gitignore b/.gitignore index fac12a2..46bb5a7 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ *.swp *.swo *.bak +.tox diff --git a/.zuul.yaml b/.zuul.yaml new file mode 100644 index 0000000..b81a22f --- /dev/null +++ b/.zuul.yaml @@ -0,0 +1,8 @@ +- project: + check: + jobs: + - tox-linters: + voting: false + gate: + jobs: + - noop diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000..3930480 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1 @@ +flake8 diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..896598a --- /dev/null +++ b/tox.ini @@ -0,0 +1,24 @@ +[tox] +minversion = 1.4.2 +envlist = docs,linters +skipsdist = True + +[testenv] +deps = -r{toxinidir}/test-requirements.txt + +[testenv:venv] +commands = {posargs} + +[flake8] +show-source = True +ignore = E305,E402,E501,E722,E741,W503 +builtins = _ +exclude=.venv,.git,.tox,dist,doc,*egg,build + +[testenv:linters] +setenv = + ANSIBLE_ROLES_PATH = .. +whitelist_externals = bash +commands = + # PEP8 Lint Check + flake8