Skip to content

Commit 9a95e92

Browse files
committed
Fix format conflicts
1 parent a1f003b commit 9a95e92

File tree

5 files changed

+9
-13
lines changed

5 files changed

+9
-13
lines changed

.pylintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ disable=print-statement,
145145
missing-class-docstring,
146146
missing-function-docstring,
147147
C0330,
148+
R0801,
148149

149150
# Enable the message, report, category or checker with the given id(s). You can
150151
# either give multiple identifier separated by comma (,) or put this option

msgraphcore/graph_session.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@
66
from msgraphcore.constants import BASE_URL, SDK_VERSION
77
from msgraphcore.middleware.abc_token_credential import TokenCredential
88
from msgraphcore.middleware.authorization import AuthorizationHandler
9-
from msgraphcore.middleware.middleware import (BaseMiddleware,
10-
MiddlewarePipeline)
11-
from msgraphcore.middleware.options.middleware_control import \
12-
middleware_control
9+
from msgraphcore.middleware.middleware import BaseMiddleware, MiddlewarePipeline
10+
from msgraphcore.middleware.options.middleware_control import middleware_control
1311

1412

1513
class GraphSession(Session):

tests/unit/test_auth_handler.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22

33
from msgraphcore.constants import AUTH_MIDDLEWARE_OPTIONS
44
from msgraphcore.middleware.authorization import AuthorizationHandler
5-
from msgraphcore.middleware.options.auth_middleware_options import \
6-
AuthMiddlewareOptions
7-
from msgraphcore.middleware.options.middleware_control import \
8-
middleware_control
5+
from msgraphcore.middleware.options.auth_middleware_options import AuthMiddlewareOptions
6+
from msgraphcore.middleware.options.middleware_control import middleware_control
97

108

119
class TestAuthorizationHandler(unittest.TestCase):

tests/unit/test_middleware_options.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from unittest import TestCase
22

3-
from msgraphcore.middleware.options.auth_middleware_options import \
4-
AuthMiddlewareOptions
3+
from msgraphcore.middleware.options.auth_middleware_options import AuthMiddlewareOptions
54

65

76
class TestMiddlewareOptions(TestCase):

tests/unit/test_middleware_pipeline.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
from collections import OrderedDict
22
from unittest import TestCase
33

4-
from msgraphcore.middleware.middleware import (BaseMiddleware,
5-
MiddlewarePipeline)
4+
from msgraphcore.middleware.middleware import BaseMiddleware, MiddlewarePipeline
65

76

87
class MiddlewarePipelineTest(TestCase):
@@ -40,7 +39,8 @@ def test_response_object_is_modified_in_reverse_order(self):
4039
MockResponseMiddleware2()
4140
) # returns hello as the response
4241

43-
# Responses are passed through the list of middlewares in reverse order. This will return hello world
42+
# Responses are passed through the list of middlewares in reverse order.
43+
# This will return hello world
4444
resp = middleware_pipeline.send(OrderedDict())
4545

4646
self.assertEqual(resp, 'Hello World')

0 commit comments

Comments
 (0)