aboutsummaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorVenkata Harshavardhan Reddy Allu <venkataharshavardhan_ven@srmuniv.edu.in>2019-03-22 17:58:00 +0530
committerVenkata Harshavardhan Reddy Allu <venkataharshavardhan_ven@srmuniv.edu.in>2019-03-22 18:18:45 +0530
commit06ed156d9a9eb6cf8f61e7a7b3d9d35f30e6d755 (patch)
tree5a463c6f124e8dafa691011de7bbadefee581964 /tox.ini
parent77f3df5f118c040a8d9e633181e5105429957dfc (diff)
Add pylint check to tox
Pylint is necessary to avoid potential errors which flake8 doesn't detect because flake8 is concentrated on code style rather than linting. Change-Id: I50f455227e85c08465e312e07b276698b502cdd2 Signed-off-by: Venkata Harshavardhan Reddy Allu <venkataharshavardhan_ven@srmuniv.edu.in>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini17
1 files changed, 16 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index a92fccf2..c359c547 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = docs,docs-linkcheck,py27,yamllint
+envlist = docs,docs-linkcheck,py27,yamllint,pylint
skipsdist = True
[testenv]
@@ -41,3 +41,18 @@ files =
sfc/tests/functest
commands =
yamllint -s {[testenv:yamllint]files}
+
+[testenv:pylint]
+basepython = python2.7
+commands = pylint --rcfile=tox.ini sfc
+
+# pylintrc
+[MESSAGES CONTROL]
+disable=all
+
+enable=F,E,unreachable,duplicate-key,unnecessary-semicolon,
+ global-variable-not-assigned,unused-variable,binary-op-exception,
+ bad-format-string,anomalous-backslash-in-string,bad-open-mode
+
+[TYPECHECK]
+ignored-classes=Connection