Skip to content

Commit

Permalink
uprev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Jan 21, 2022
1 parent 2a7de82 commit 7a7c0b7
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 27 deletions.
2 changes: 1 addition & 1 deletion aioaws/sns.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async def verify_webhook(request_body: Union[str, bytes], http_client: AsyncClie

async def verify_signature(payload: SnsPayload, http_client: AsyncClient) -> None:
url = payload.signing_cert_url
if not re.fullmatch(r'sns\.[a-z0-9\-]+\.amazonaws\.com', url.host):
if url.host is None or not re.fullmatch(r'sns\.[a-z0-9\-]+\.amazonaws\.com', url.host):
raise SnsWebhookError(f'invalid SigningCertURL "{url}"')

certs_content = await get_resources(url, http_client)
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# this exists mostly to prompt dependabot to update critical depend
-r tests/requirements.txt
aiofiles==0.7.0
cryptography==3.4.8
httpx==0.19.0
pydantic==1.8.2
aiofiles==0.8.0
cryptography==36.0.1
httpx==0.21.3
pydantic==1.9.0
9 changes: 2 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
[tool:pytest]
testpaths = tests
filterwarnings =
error
ignore::DeprecationWarning:aiohttp.web_server
ignore::DeprecationWarning:aiohttp.web_runner
ignore::DeprecationWarning:asyncio.base_events
ignore::DeprecationWarning:aiohttp.helpers
ignore::DeprecationWarning:aiofiles.os
asyncio_mode = auto
filterwarnings = error

[flake8]
max-line-length = 120
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
install_requires=[
'aiofiles>=0.5.0',
'cryptography>=3.1.1',
'httpx>=0.18.2',
'pydantic>=1.7.4',
'httpx>=0.21.0',
'pydantic>=1.8.2',
],
)
12 changes: 6 additions & 6 deletions tests/requirements-linting.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
black==20.8b1
flake8==3.9.2
flake8-quotes==3.3.0
isort==5.9.3
mypy==0.910
pycodestyle==2.7.0
pyflakes==2.3.1
flake8==4.0.1
flake8-quotes==3.3.1
isort==5.10.1
mypy==0.931
pycodestyle==2.8.0
pyflakes==2.4.0
14 changes: 7 additions & 7 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
aiohttp==3.7.4
foxglove-web==0.0.28
pillow==8.3.2
coverage==5.5
pygments==2.10.0
pytest==6.2.4
pytest-cov==2.12.1
pytest-asyncio==0.15.1
foxglove-web==0.0.36
pillow==9.0.0
coverage==6.2
pygments==2.11.2
pytest==6.2.5
pytest-cov==3.0.0
pytest-asyncio==0.17.2
pytest-mock==3.6.1
pytest-sugar==0.9.4
pytest-toolbox==0.4

0 comments on commit 7a7c0b7

Please sign in to comment.