jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/592483 )
Change subject: [tests] Add flake8-color to provide a color format string ......................................................................
[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(-)
Approvals: Zhuyifei1999: Looks good to me, approved jenkins-bot: Verified
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