Skip to content

Commit c46f4e7

Browse files
author
Daniel Gallagher
committed
Run pre-commit on all files to apply black formatting
1 parent 6d3a58c commit c46f4e7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+3
-127
lines changed

graphql/backend/base.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414

1515
class GraphQLBackend(six.with_metaclass(ABCMeta)):
16-
1716
@abstractmethod
1817
def document_from_string(self, schema, request_string):
1918
raise NotImplementedError(
@@ -22,7 +21,6 @@ def document_from_string(self, schema, request_string):
2221

2322

2423
class GraphQLDocument(object):
25-
2624
def __init__(self, schema, document_string, document_ast, execute):
2725
# type: (GraphQLSchema, str, Document, Callable) -> None
2826
self.schema = schema

graphql/backend/compiled.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99

1010
class GraphQLCompiledDocument(GraphQLDocument):
11-
1211
@classmethod
1312
def from_code(
1413
cls,

graphql/backend/quiver_cloud.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232

3333

3434
class GraphQLQuiverCloudBackend(GraphQLBackend):
35-
3635
def __init__(self, dsn, python_options=None, **options):
3736
super(GraphQLQuiverCloudBackend, self).__init__(**options)
3837
try:
@@ -50,7 +49,7 @@ def __init__(self, dsn, python_options=None, **options):
5049
else:
5150
path = ""
5251

53-
self.api_url = "%s://%s%s" % (url.scheme.rsplit("+", 1)[-1], netloc, path)
52+
self.api_url = "{}://{}{}".format(url.scheme.rsplit("+", 1)[-1], netloc, path)
5453
self.public_key = url.username
5554
self.secret_key = url.password
5655
self.extra_namespace = {}

graphql/backend/tests/test_decider.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818

1919
class FakeBackend(GraphQLBackend):
20-
2120
def __init__(self, name, raises=False):
2221
# type: (str, bool) -> None
2322
self.raises = raises

graphql/error/located_error.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212

1313
class GraphQLLocatedError(GraphQLError):
14-
1514
def __init__(
1615
self,
1716
nodes, # type: List[Field]

graphql/error/syntax_error.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111

1212
class GraphQLSyntaxError(GraphQLError):
13-
1413
def __init__(self, source, position, description):
1514
# type: (Source, int, str) -> None
1615
location = get_location(source, position)

graphql/execution/executors/asyncio.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def asyncgen_to_observable(asyncgen, loop=None):
4545

4646

4747
class AsyncioExecutor(object):
48-
4948
def __init__(self, loop=None):
5049
# type: (Optional[_UnixSelectorEventLoop]) -> None
5150
if loop is None:

graphql/execution/executors/asyncio_utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44

55

66
def asyncgen_to_observable(asyncgen, loop=None):
7-
87
def emit(observer):
98
task = ensure_future(iterate_asyncgen(asyncgen, observer), loop=loop)
109

1110
def dispose():
12-
1311
async def await_task():
1412
await task
1513

graphql/execution/executors/gevent.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88

99
class GeventExecutor(object):
10-
1110
def __init__(self):
1211
self.jobs = []
1312

graphql/execution/executors/process.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ def queue_process(q):
1111

1212

1313
class ProcessExecutor(object):
14-
1514
def __init__(self):
1615
self.processes = []
1716
self.q = Queue()

0 commit comments

Comments
 (0)