add unit test for pceLink and pceOpticalNode
[transportpce.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index efaf6da929e6c327a073d48a6e7c8a9ff260109b..736f1298151e4b181f168aaa0044c3f1ebd061af 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -63,3 +63,15 @@ basepython = python3
 deps = -rdocs/requirements.txt
 commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ../docs/ {toxinidir}/docs/_build/linkcheck
 
+[testenv:autopep8]
+basepython = python3
+deps = autopep8
+commands =
+    autopep8 --max-line-length 120 --in-place --recursive transportpce_tests/
+
+[testenv:pylint]
+basepython = python3
+deps = pylint
+whitelist_externals = find
+commands =
+    find transportpce_tests/ -name *.py -exec pylint --max-line-length=120 --disable=missing-docstring  --reports=y --score=y  --output-format=colorized  \{\} +