jenkins-bot submitted this change.

View Change

Approvals: Zhuyifei1999: Looks good to me, approved jenkins-bot: Verified
[tests] Add flake8-color to provide a color format string

This enables to easy find the flake8 error messages

Bug: T117570
Change-Id: Ibbe0a165d1f4caa13379728bc6513365bde9a946
---
M setup.py
M tox.ini
2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/setup.py b/setup.py
index 21711c2..efc9e49 100644
--- a/setup.py
+++ b/setup.py
@@ -59,6 +59,7 @@
'pydocstyle>=4.0.0;python_version>="3.4"',
'hacking',
'flake8-coding',
+ 'flake8-colors',
'flake8-comprehensions>=3.1.4;python_version>="3.8"',
'flake8-comprehensions>=2.2.0;python_version>="3.5"',
'flake8-comprehensions>=2.0.0,<2.2.0;python_version=="3.4"',
diff --git a/tox.ini b/tox.ini
index d34bd55..c1ad738 100644
--- a/tox.ini
+++ b/tox.ini
@@ -107,6 +107,8 @@
accept-encodings = utf-8
require-code = true
classmethod-decorators = classmethod,classproperty
+# flake8-color format string
+format = ${blue}%(path)s${reset}: ${bold}line %(row)d:${reset}%(col)d: ${red_bold}%(code)s${reset} %(text)s

# The following are to be fixed
# N802: function name should be lowercase

To view, visit change 592483. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ibbe0a165d1f4caa13379728bc6513365bde9a946
Gerrit-Change-Number: 592483
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Dvorapa <dvorapa@seznam.cz>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: Zhuyifei1999 <zhuyifei1999@gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged