Skip to content

Commit

Permalink
Upgrade development dependencies #199 (#214)
Browse files Browse the repository at this point in the history
* Upgrade development dependencies (#199)

Fixes #199

Signed-off-by: Omar Mohamed <[email protected]>
  • Loading branch information
kibablu authored Apr 9, 2021
1 parent 6b2a7c1 commit 75ee260
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
1 change: 1 addition & 0 deletions changelog.d/214.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Upgrade development dependencies fixes #199. Contributed by Omar Mohamed
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ def read(fname):
],
extras_require={
"dev": [
"black==19.10b0",
"flake8==3.8.3",
"black==20.8b1",
"flake8==3.9.0",
"isort~=5.0",
"mypy==0.780",
"mypy-zope==0.2.7",
"mypy==0.812",
"mypy-zope==0.3.0",
"tox",
]
},
Expand Down
4 changes: 3 additions & 1 deletion sygnal/helper/proxy/proxy_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,9 @@ class ProxyingEventLoopWrapper:
"""

def __init__(
self, wrapped_loop: asyncio.AbstractEventLoop, proxy_url_str: str,
self,
wrapped_loop: asyncio.AbstractEventLoop,
proxy_url_str: str,
):
"""
Args:
Expand Down
3 changes: 2 additions & 1 deletion tests/test_apns.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ def test_expected_badge_only_with_default_payload(self):
((notification_req,), _kwargs) = method.call_args

self.assertEqual(
{"aps": {"badge": 2}}, notification_req.message,
{"aps": {"badge": 2}},
notification_req.message,
)

self.assertEqual({"rejected": []}, resp)
Expand Down
5 changes: 4 additions & 1 deletion tests/test_httpproxy_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,10 @@ def config_setup(self, config):
self.proxy_context.set_ciphers("DEFAULT")

def make_fake_proxy(
self, host: str, port: int, proxy_credentials: Optional[Tuple[str, str]],
self,
host: str,
port: int,
proxy_credentials: Optional[Tuple[str, str]],
) -> Tuple[EchoProtocol, MockTransport, "Task[Tuple[BaseTransport, Protocol]]"]:
# Task[Tuple[MockTransport, MockProtocol]]

Expand Down

0 comments on commit 75ee260

Please sign in to comment.