jenkins-bot has submitted this change and it was merged.
Change subject: Use flake8-coding
......................................................................
Use flake8-coding
Change-Id: I3bd2616227eec5555c2676d1ec9331e52dcb2653
---
M pywikibot/comms/rcstream.py
M pywikibot/compat/__init__.py
M pywikibot/interwiki_graph.py
M pywikibot/userinterfaces/cgi_interface.py
M pywikibot/userinterfaces/win32_unicode.py
M scripts/__init__.py
M scripts/maintenance/__init__.py
M tests/i18n/__init__.py
M tests/pwb/__init__.py
M tests/tools_chars_tests.py
M tests/tools_ip_tests.py
M tests/tools_tests.py
M tox.ini
13 files changed, 14 insertions(+), 3 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/comms/rcstream.py b/pywikibot/comms/rcstream.py
index 710163d..438823a 100644
--- a/pywikibot/comms/rcstream.py
+++ b/pywikibot/comms/rcstream.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
"""
SocketIO-based rcstream client.
diff --git a/pywikibot/compat/__init__.py b/pywikibot/compat/__init__.py
index 49d9f46..fe93354 100644
--- a/pywikibot/compat/__init__.py
+++ b/pywikibot/compat/__init__.py
@@ -1 +1,2 @@
+# -*- coding: utf-8 -*-
"""Package to provide compatibility with compat
scripts."""
diff --git a/pywikibot/interwiki_graph.py b/pywikibot/interwiki_graph.py
index 2263dbc..223307d 100644
--- a/pywikibot/interwiki_graph.py
+++ b/pywikibot/interwiki_graph.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
"""Module with the Graphviz drawing calls."""
#
# (C) Pywikibot team, 2006-2015
diff --git a/pywikibot/userinterfaces/cgi_interface.py
b/pywikibot/userinterfaces/cgi_interface.py
index 42424b0..3c83914 100644
--- a/pywikibot/userinterfaces/cgi_interface.py
+++ b/pywikibot/userinterfaces/cgi_interface.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
"""CGI user interface."""
from __future__ import unicode_literals
diff --git a/pywikibot/userinterfaces/win32_unicode.py
b/pywikibot/userinterfaces/win32_unicode.py
index e4b176f..2783d16 100755
--- a/pywikibot/userinterfaces/win32_unicode.py
+++ b/pywikibot/userinterfaces/win32_unicode.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
"""Stdout, stderr and argv support for unicode."""
##############################################
# Support for unicode in windows cmd.exe
diff --git a/scripts/__init__.py b/scripts/__init__.py
index ab8c50a..03688c1 100644
--- a/scripts/__init__.py
+++ b/scripts/__init__.py
@@ -1 +1,2 @@
+# -*- coding: utf-8 -*-
"""THIS DIRECTORY IS TO HOLD BOT SCRIPTS FOR THE NEW
FRAMEWORK."""
diff --git a/scripts/maintenance/__init__.py b/scripts/maintenance/__init__.py
index ee430b4..fd43e14 100644
--- a/scripts/maintenance/__init__.py
+++ b/scripts/maintenance/__init__.py
@@ -1,2 +1,3 @@
+# -*- coding: utf-8 -*-
# THIS DIRECTORY IS TO HOLD BOT SCRIPTS FOR THE NEW FRAMEWORK
"""Maintenance scripts."""
diff --git a/tests/i18n/__init__.py b/tests/i18n/__init__.py
index f1a0213..fdca28a 100644
--- a/tests/i18n/__init__.py
+++ b/tests/i18n/__init__.py
@@ -1 +1,2 @@
+# -*- coding: utf-8 -*-
"""Test i18n data package."""
diff --git a/tests/pwb/__init__.py b/tests/pwb/__init__.py
index fb493b3..56b2f7a 100644
--- a/tests/pwb/__init__.py
+++ b/tests/pwb/__init__.py
@@ -1 +1,2 @@
+# -*- coding: utf-8 -*-
"""Dummy package initialisation."""
diff --git a/tests/tools_chars_tests.py b/tests/tools_chars_tests.py
index 5e2006b..f8e5cd4 100644
--- a/tests/tools_chars_tests.py
+++ b/tests/tools_chars_tests.py
@@ -1,6 +1,6 @@
#!/usr/bin/python
-"""Test tools.chars package."""
# -*- coding: utf-8 -*-
+"""Test tools.chars package."""
#
# (C) Pywikibot team, 2015
#
diff --git a/tests/tools_ip_tests.py b/tests/tools_ip_tests.py
index fb9ea1a..b9c3646 100644
--- a/tests/tools_ip_tests.py
+++ b/tests/tools_ip_tests.py
@@ -1,6 +1,6 @@
#!/usr/bin/python
-"""Test IP module/regex."""
# -*- coding: utf-8 -*-
+"""Test IP module/regex."""
#
# (C) Pywikibot team, 2012-2015
#
diff --git a/tests/tools_tests.py b/tests/tools_tests.py
index b60b2a5..dbb8df8 100644
--- a/tests/tools_tests.py
+++ b/tests/tools_tests.py
@@ -1,6 +1,6 @@
#!/usr/bin/python
-"""Test tools package alone which don't fit into other
tests."""
# -*- coding: utf-8 -*-
+"""Test tools package alone which don't fit into other
tests."""
#
# (C) Pywikibot team, 2015
#
diff --git a/tox.ini b/tox.ini
index 15ecea9..7449e16 100644
--- a/tox.ini
+++ b/tox.ini
@@ -22,6 +22,7 @@
basepython = python2.7
deps = flake8
flake8-docstrings
+ flake8-coding
[testenv:flake8-py3]
commands = flake8 --ignore=D102,D103,E122,E127,E241,E402,E731 {posargs}
@@ -224,6 +225,7 @@
ignore = E241,E265,E402,E731
exclude = .tox,.git,./*.egg,ez_setup.py,build,externals,user-config.py,./scripts/i18n/*
max_line_length = 130
+accept-encodings = utf-8
[pep8]
ignore = E241,E402,E731
--
To view, visit
https://gerrit.wikimedia.org/r/236493
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I3bd2616227eec5555c2676d1ec9331e52dcb2653
Gerrit-PatchSet: 3
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>