summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Wayne Parrott <jonwayne@google.com>2016-11-21 11:16:49 -0800
committerJon Wayne Parrott <jonwayne@google.com>2016-11-21 12:56:25 -0800
commitc8245ca7b82ced987080a71254da605c5d734551 (patch)
tree8832687e1b36d647b1f38e71f4ef168565afc959
parent935cb0fe14ec91da265339f189cdbe8ca94798f2 (diff)
downloadgoogle-compute-image-packages-lint.tar.gz
Add lint to Travislint
-rw-r--r--tox.ini31
1 files changed, 29 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index d3d4b7a..d3c13f0 100644
--- a/tox.ini
+++ b/tox.ini
@@ -28,10 +28,37 @@ commands =
-v \
{posargs:.}
-# Note: currently disabled.
[testenv:lint]
deps =
flake8
flake8-import-order
commands =
- flake8 --exclude=env --import-order-style=google
+ flake8 --import-order-style=google
+
+[flake8]
+# Temporarly disabling warnings until code is flake8 compliant.
+# E111 indentation is not a multiple of four
+# E114 indentation is not a multiple of four (comment)
+# E121 continuation line under-indented for hanging indent
+# E125 continuation line with same indent as next logical line
+# E128 continuation line under-indented for visual indent
+# E129 visually indented line with same indent as next logical line
+# E226 missing whitespace around arithmetic operator
+# E231 missing whitespace after ','
+# E261 at least two spaces before inline comment
+# E302 expected 2 blank lines, found 1
+# E501 line too long
+# F401 imported but unused
+ignore = E111,E114,E121,E125,E128,E129,E226,E231,E261,E302,E501,F401
+exclude =
+ .git,
+ .tox,
+ __pycache__,
+ dist,
+ env
+
+# This section configures tox-travis.
+# See https://github.com/ryanhiebert/tox-travis#advanced-configuration
+[travis]
+python =
+ 2.7: py27, lint