8000 chore: apply black formatting · graphql-python/graphql-server@3b74a14 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3b74a14

Browse files
committed
chore: apply black formatting
1 parent 7b3f8c0 commit 3b74a14

File tree

6 files changed

+29
-12
lines changed

6 files changed

+29
-12
lines changed

graphql_server/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,9 @@ def get_response(
326326
that belong to an exception class that you need to pass as a parameter.
327327
"""
328328
# Note: PyCharm will display a error due to the triple dot being used on Callable.
329-
execute = execute_graphql_request # type: Callable[..., Union[Promise[ExecutionResult], ExecutionResult]]
329+
execute = (
330+
execute_graphql_request
331+
) # type: Callable[..., Union[Promise[ExecutionResult], ExecutionResult]]
330332
if kwargs.get("return_promise", False):
331333
execute = execute_graphql_request_as_promise
332334

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[flake8]
22
exclude = docs
3-
max-line-length = 120
3+
max-line-length = 88
44

55
[isort]
66
known_first_party=graphql_server

tests/schema.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
from graphql.type.definition import (GraphQLArgument, GraphQLField,
2-
GraphQLNonNull, GraphQLObjectType)
1+
from graphql.type.definition import (
2+
GraphQLArgument,
3+
GraphQLField,
4+
GraphQLNonNull,
5+
GraphQLObjectType,
6+
)
37
from graphql.type.scalars import GraphQLString
48
from graphql.type.schema import GraphQLSchema
59

tests/test_asyncio.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from graphql.execution.executors.asyncio import AsyncioExecutor
2-
from graphql.type.definition import (GraphQLField, GraphQLNonNull,
3-
GraphQLObjectType)
2+
from graphql.type.definition import GraphQLField, GraphQLNonNull, GraphQLObjectType
43
from graphql.type.scalars import GraphQLString
54
from graphql.type.schema import GraphQLSchema
65
from promise import Promise

tests/test_helpers.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@
55
from graphql.language.location import SourceLocation
66
from pytest import raises
77

8-
from graphql_server import (HttpQueryError, ServerResponse,
9-
encode_execution_results, json_encode,
10-
json_encode_pretty, load_json_body)
8+
from graphql_server import (
9+
HttpQueryError,
10+
ServerResponse,
11+
encode_execution_results,
12+
json_encode,
13+
json_encode_pretty,
14+
load_json_body,
15+
)
1116

1217

1318
def test_json_encode():

tests/test_query.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,16 @@
55
from promise import Promise
66
from pytest import raises
77

8-
from graphql_server import (HttpQueryError, RequestParams, ServerResults,
9-
encode_execution_results, json_encode,
10-
json_encode_pretty, load_json_body, run_http_query)
8+
from graphql_server import (
9+
HttpQueryError,
10+
RequestParams,
11+
ServerResults,
12+
encode_execution_results,
13+
json_encode,
14+
json_encode_pretty,
15+
load_json_body,
16+
run_http_query,
17+
)
1118

1219
from .schema import schema
1320
from .utils import as_dicts

0 commit comments

Comments
 (0)
0