diff --git a/aioaws/sns.py b/aioaws/sns.py index 5ceb388..cc018d4 100644 --- a/aioaws/sns.py +++ b/aioaws/sns.py @@ -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) diff --git a/requirements.txt b/requirements.txt index 27879d4..629c3c3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 diff --git a/setup.cfg b/setup.cfg index f93290f..f824c0f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 diff --git a/setup.py b/setup.py index 50a4273..e19ac49 100644 --- a/setup.py +++ b/setup.py @@ -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', ], ) diff --git a/tests/requirements-linting.txt b/tests/requirements-linting.txt index 2c99e16..be739a8 100644 --- a/tests/requirements-linting.txt +++ b/tests/requirements-linting.txt @@ -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 diff --git a/tests/requirements.txt b/tests/requirements.txt index e03c740..2111ca2 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -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