John Vandenberg has uploaded a new change for review.
https://gerrit.wikimedia.org/r/262696
Change subject: Colourise flake8 output
......................................................................
Colourise flake8 output
Bug: T117570
Change-Id: I6ae0c6dd539ab667650de575f382276fbf342bc7
---
M tox.ini
1 file changed, 4 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/96/262696/1
diff --git a/tox.ini b/tox.ini
index a1bc548..e05c56b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -10,6 +10,7 @@
[params]
nose_skip = --ignore-files=(gui\.py|botirc\.py|rcstream\.py|api\.py)
+pep8_color_format = "$(tput setaf 1)ERROR:$(tput setaf 7) %(path)s %(row)d
%(col)d : %(code)s %(text)s"
[testenv]
setenv =
@@ -25,7 +26,7 @@
[testenv:flake8]
commands =
flake8 --version
- flake8 --ignore={[flake8]ignore} {posargs}
+ flake8 --ignore={[flake8]ignore} --format={[params]pep8_color_format}
{posargs}
basepython = python2.7
deps = flake8
hacking
@@ -39,7 +40,7 @@
[testenv:flake8-py3]
commands =
flake8 --version
- flake8 --ignore={[flake8]ignore} {posargs}
+ flake8 --ignore={[flake8]ignore} --format={[params]pep8_color_format}
{posargs}
basepython = python3
deps = flake8
flake8-docstrings<0.2.2
@@ -96,7 +97,7 @@
# E731: do not assign a lambda expression, use a def; see I7b3db838
# H201: Except: format
# P102,P103: string does contain unindexed parameters; see I36355923
-ignore =
E402,E731,D105,D211,FI10,FI12,FI13,FI15,FI5,H101,H201,H236,H301,H404,H405,I100,I101,P102,P103
+#ignore =
E402,E731,D105,D211,FI10,FI12,FI13,FI15,FI5,H101,H201,H236,H301,H404,H405,I100,I101,P102,P103
exclude =
.tox,.git,./*.egg,ez_setup.py,build,externals,user-config.py,./scripts/i18n/*
max_line_length = 130
accept-encodings = utf-8
--
To view, visit https://gerrit.wikimedia.org/r/262696
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6ae0c6dd539ab667650de575f382276fbf342bc7
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits