John Vandenberg has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/244561

Change subject: Use flake8 for linting
......................................................................

Use flake8 for linting

flake8 include pyflakes

Change-Id: Ia09023802b43036d9196267774c6e009366e91a7
---
M tox.ini
1 file changed, 8 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/compat 
refs/changes/61/244561/1

diff --git a/tox.ini b/tox.ini
index cf8308c..189e9d9 100644
--- a/tox.ini
+++ b/tox.ini
@@ -3,9 +3,16 @@
 envlist = lint
 
 [testenv:lint]
-commands = pep8
+commands =
+    flake8 --version
+    flake8
 deps = pep8<1.7
 
+[flake8]
+ignore = E112,E115,E122,E127,E241,E226,E265,E266,E402,E502,E731,W503,W602
+exclude = 
./catimages.py,./wiktionary.py,./wiktionary/*,./tests/*,./userinterfaces/*,./commonsdelinker/*,./families/*,./maintenance/*,./pywikibot/*,./externals/*,./.tox
+max_line_length = 256
+
 [pep8]
 # E112 expected an indented block
 # E115 expected an indented block (comment)

-- 
To view, visit https://gerrit.wikimedia.org/r/244561
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia09023802b43036d9196267774c6e009366e91a7
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to