jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/787877 )

Change subject: flke8-printing: 5.0.0 renamed error codes so list both
......................................................................

flke8-printing: 5.0.0 renamed error codes so list both

Bug: T307281
Change-Id: I777dadc94e838c051a52dba41c141ba104c3e034
---
M pywikibot/scripts/shell.py
M pywikibot/userinterfaces/_interface_base.py
M tests/__init__.py
M tox.ini
4 files changed, 9 insertions(+), 9 deletions(-)

Approvals:
  JJMC89: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/scripts/shell.py b/pywikibot/scripts/shell.py
index c9878ee..b267b7f 100755
--- a/pywikibot/scripts/shell.py
+++ b/pywikibot/scripts/shell.py
@@ -36,7 +36,7 @@
         warn_type = 'Unknown'

     if args:
-        print('{} arguments: {}\n'  # noqa: T001
+        print('{} arguments: {}\n'  # noqa: T001, T201
               .format(warn_type, ', '.join(args)))

     # Various stuffs in Python 3.4+, such as history file.
diff --git a/pywikibot/userinterfaces/_interface_base.py 
b/pywikibot/userinterfaces/_interface_base.py
index 914f382..e2fef8f 100644
--- a/pywikibot/userinterfaces/_interface_base.py
+++ b/pywikibot/userinterfaces/_interface_base.py
@@ -74,4 +74,4 @@
     @abstractmethod
     def output(self, *args, **kwargs) -> None:
         """Output text to a stream."""
-        print(*args, **kwargs)  # noqa: T001
+        print(*args, **kwargs)  # noqa: T001, T201
diff --git a/tests/__init__.py b/tests/__init__.py
index cfcde1c..58aac5e 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -199,7 +199,7 @@

 def unittest_print(*args, **kwargs):
     """Print information in test log."""
-    print(*args, **kwargs)  # noqa: T001
+    print(*args, **kwargs)  # noqa: T001, T201


 def collector(loader=unittest.loader.defaultTestLoader):
diff --git a/tox.ini b/tox.ini
index 1dec8e0..f032442 100644
--- a/tox.ini
+++ b/tox.ini
@@ -133,7 +133,7 @@
 # N816: mixedCase variable in global scope

 per-file-ignores =
-    pwb.py: FI53, T001
+    pwb.py: FI53, T001, T201
     pywikibot/__init__.py: N802, N806, N815
     pywikibot/_wbtypes.py: N802
     pywikibot/backports.py: F401
@@ -152,7 +152,7 @@
     pywikibot/page/_pages.py: N802
     pywikibot/page/_wikibase.py: N802
     pywikibot/pagegenerators.py: N802, N803, N806, N816
-    pywikibot/scripts/generate_family_file.py: T001
+    pywikibot/scripts/generate_family_file.py: T001, T201
     pywikibot/site/_datasite.py: N802
     pywikibot/textlib.py: N801, N802, N803, N806
     pywikibot/throttle.py: N802
@@ -162,7 +162,7 @@
     pywikibot/userinterfaces/terminal_interface_base.py: N802, N803, N806, N816
     pywikibot/userinterfaces/terminal_interface_unix.py: E241, N816
     pywikibot/userinterfaces/terminal_interface_win32.py: E241, N816
-    pywikibot/userinterfaces/win32_unicode.py: N801, N803, N806, N812, T001
+    pywikibot/userinterfaces/win32_unicode.py: N801, N803, N806, N812, T001, 
T201
     pywikibot/xmlreader.py: N802, N803, N806
     scripts/clean_sandbox.py: N816
     scripts/commonscat.py: N802, N806, N816
@@ -171,14 +171,14 @@
     scripts/harvest_template.py: N802, N816
     scripts/interwiki.py: N802, N803, N806, N816
     scripts/imagetransfer.py: N803, N806, N816
-    scripts/maintenance/make_i18n_dict.py: T001
+    scripts/maintenance/make_i18n_dict.py: T001, T201
     scripts/misspelling.py: N802
     scripts/noreferences.py: N802, N803, N806, N816
     scripts/redirect.py: N803, N806
     scripts/reflinks.py: N802, N816
     scripts/replace.py: N802, N803, N806, N816
     scripts/solve_disambiguation.py: N802, N806
-    setup.py: T001
+    setup.py: T001, T201
     tests/api_tests.py: N802
     tests/archivebot_tests.py: N802
     tests/aspects.py: N802
@@ -195,7 +195,7 @@
     tests/namespace_tests.py: N802
     tests/page_tests.py: E241, N802
     tests/pagegenerators_tests.py: N802
-    tests/pwb/*: T001
+    tests/pwb/*: T001, T201
     tests/site_detect_tests.py: N802
     tests/site_tests.py: N802
     tests/sparql_tests.py: N802

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/787877
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I777dadc94e838c051a52dba41c141ba104c3e034
Gerrit-Change-Number: 787877
Gerrit-PatchSet: 2
Gerrit-Owner: JJMC89 <[email protected]>
Gerrit-Reviewer: JJMC89 <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to