jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/652565 )
Change subject: [cleanup] Remove magic coding: comment ......................................................................
[cleanup] Remove magic coding: comment
magic coding comment like is for Python 2 whereas Python 3 uses utf-8 by default
Disallow magic coding comment but ignore warnings until all scripts are cleaned.
Change-Id: If092e092b56ae7a43b3be797b969f3ea4420f709 --- M docs/conf.py M tox.ini 2 files changed, 6 insertions(+), 4 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/docs/conf.py b/docs/conf.py index fed05e1..99c01f7 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Configuration file for Sphinx.""" # # (C) Pywikibot team, 2014-2020 diff --git a/tox.ini b/tox.ini index 908ddb8..20aec2a 100644 --- a/tox.ini +++ b/tox.ini @@ -96,15 +96,18 @@ # D412: No blank lines allowed between a section header and its content # D413: Missing blank line after last section
-ignore = D105,D211,D401,D413,D412,FI1,H101,H238,H301,H404,H405,H903,P101,P102,P103,P205,W503 +ignore = C103,D105,D211,D401,D413,D412,FI1,H101,H238,H301,H404,H405,H903,P101,P102,P103,P205,W503 enable-extensions = H203,H204,H205 exclude = .tox,.git,./*.egg,build,scripts/archive/*,./scripts/i18n/* min-version = 2.7 -accept-encodings = utf-8 require-code = true classmethod-decorators = classmethod,classproperty
-# flake8-color format string +# flake8-coding +# note: C103 can be removed from ignore if scripts are cleaned from coding part +no-accept-encodings = true + +# flake8-color color = always format = ${blue}%(path)s${reset}: ${bold}line %(row)d:${reset}%(col)d: ${red_bold}%(code)s${reset} %(text)s
pywikibot-commits@lists.wikimedia.org