Merlijn van Deen has uploaded a new change for review.
https://gerrit.wikimedia.org/r/189276
Change subject: pep8-ify (E402)
......................................................................
pep8-ify (E402)
Change-Id: I392fac8186b8e64b0c9123af0882076a94f87bd0
---
M taxonomy.py
M test_channels_yaml.py
M wikibugs.py
3 files changed, 5 insertions(+), 6 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/labs/tools/wikibugs2
refs/changes/76/189276/1
diff --git a/taxonomy.py b/taxonomy.py
index c447ba8..27face9 100644
--- a/taxonomy.py
+++ b/taxonomy.py
@@ -1,5 +1,6 @@
from collections import OrderedDict
import phabricator
+import configfetcher
# work around pywikibot defaults
import os
@@ -13,9 +14,8 @@
pass
os.environ["PYWIKIBOT2_NO_USER_CONFIG"] = "1"
os.environ["PYWIKIBOT2_DIR"] = pwb_path
-import pywikibot
+import pywikibot # noqa
-import configfetcher
conf = configfetcher.ConfigFetcher()
# Fetch projects
diff --git a/test_channels_yaml.py b/test_channels_yaml.py
index 5d645eb..b606375 100755
--- a/test_channels_yaml.py
+++ b/test_channels_yaml.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python
import channelfilter
+import json
chanfilter = channelfilter.ChannelFilter()
# An exception would have been raised if that wasn't the case
@@ -19,7 +20,6 @@
chanfilter.channels_for(['Phabricator']))
-import json
json.load(open("config.json.example"))
print('config.json.example is valid json')
diff --git a/wikibugs.py b/wikibugs.py
index d03d351..d8fd17c 100644
--- a/wikibugs.py
+++ b/wikibugs.py
@@ -7,6 +7,8 @@
import sys
import json
from bs4 import BeautifulSoup
+import configfetcher
+import rqueue
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
@@ -16,9 +18,6 @@
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s -
%(message)s')
handler.setFormatter(formatter)
logger.addHandler(handler)
-
-import configfetcher
-import rqueue
class Wikibugs2(object):
--
To view, visit https://gerrit.wikimedia.org/r/189276
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I392fac8186b8e64b0c9123af0882076a94f87bd0
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/wikibugs2
Gerrit-Branch: master
Gerrit-Owner: Merlijn van Deen <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits