Adds pylint to tox test pipeline and fixes related errors
Change-Id: Ie19400ce0cf591e0bfcbca690bd5d905ad9bd6f5
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
diff --git a/tox.ini b/tox.ini
index 584efa7..af61a35 100644
--- a/tox.ini
+++ b/tox.ini
@@ -25,7 +25,7 @@
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
-envlist = py3, flake8
+envlist = py3, flake8, pylint
toxworkdir={homedir}/.tox
[testenv]
@@ -34,6 +34,12 @@
install_command = python3 -m pip install -r requirements.txt -U {opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
+[testenv:pylint]
+basepython = python3
+deps = pylint
+commands =
+ pylint -E osm_policy_module
+
[testenv:flake8]
basepython = python3
deps = flake8