Skip to content

Commit 1a72a7d

Browse files
committed
Geography: run Black
1 parent 849acb2 commit 1a72a7d

File tree

6 files changed

+13
-8
lines changed

6 files changed

+13
-8
lines changed

Diff for: plugins/Geography/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,11 @@
4747
__contributors__ = {}
4848

4949
# This is a url where the most recent plugin package can be downloaded.
50-
__url__ = ''
50+
__url__ = ""
5151

5252
from . import config
5353
from . import plugin
54+
5455
if sys.version_info >= (3, 4):
5556
from importlib import reload
5657
else:

Diff for: plugins/Geography/config.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030

3131
from supybot import conf, registry
3232
from supybot.i18n import PluginInternationalization
33-
_ = PluginInternationalization('Geography')
33+
34+
_ = PluginInternationalization("Geography")
3435

3536

3637
def configure(advanced):
@@ -39,10 +40,11 @@ def configure(advanced):
3940
# user or not. You should effect your configuration by manipulating the
4041
# registry as appropriate.
4142
from supybot.questions import expect, anything, something, yn
42-
conf.registerPlugin('Geography', True)
43+
44+
conf.registerPlugin("Geography", True)
4345

4446

45-
Geography = conf.registerPlugin('Geography')
47+
Geography = conf.registerPlugin("Geography")
4648
# This is where your configuration variables (if any) should go. For example:
4749
# conf.registerGlobalValue(Geography, 'someConfigVariableName',
4850
# registry.Boolean(False, _("""Help for someConfigVariableName.""")))

Diff for: plugins/Geography/plugin.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@
3232
from supybot.commands import *
3333
from supybot.i18n import PluginInternationalization
3434

35-
_ = PluginInternationalization('Geography')
35+
_ = PluginInternationalization("Geography")
3636

3737

3838
class Geography(callbacks.Plugin):
3939
"""Provides geography facts, such as timezones."""
40+
4041
threaded = True
4142

4243

Diff for: plugins/Geography/test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
from . import wikidata
3838

3939
class GeographyTestCase(PluginTestCase):
40-
plugins = ('Geography',)
40+
plugins = ("Geography",)
4141

4242

4343
class GeographyWikidataTestCase(SupyTestCase):

Diff for: plugins/Geography/wikidata.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737

3838
SPARQL_URL = "https://query.wikidata.org/sparql"
3939

40-
TIMEZONE_QUERY = string.Template("""
40+
TIMEZONE_QUERY = string.Template(
41+
"""
4142
SELECT ?item ?itemLabel ?rank ?endtime ?appliestopart ?utcoffset ?tzid (MIN(?area) AS ?min_area) WHERE {
4243
4344
# find all ?item entities that the subject is part of, recursively;

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ build-backend = "setuptools.build_meta"
55
[tool.black]
66
line-length = 79
77

8-
include = 'plugins/(Autocomplete|Fediverse|Poll)/.*\.pyi?$'
8+
include = 'plugins/(Autocomplete|Fediverse|Geography|Poll)/.*\.pyi?$'

0 commit comments

Comments
 (0)