From 9df9e3851951ba66ef680bc73d47f79db043d6b7 Mon Sep 17 00:00:00 2001 From: Cody Fincher Date: Sun, 20 Oct 2024 17:27:28 +0000 Subject: [PATCH] feat: linting --- README.md | 4 +--- docs/PYPI_README.md | 4 +--- tests/test_htmx_request.py | 3 ++- tests/test_htmx_response.py | 3 +-- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 89f1d3b..24bc73c 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,6 @@
-# Litestar HTMX - -The HTMX Plugin for Litestar +# The HTMX Plugin for Litestar See the [documentation](https://docs.litestar.dev/latest/usage/htmx.html) for usage details diff --git a/docs/PYPI_README.md b/docs/PYPI_README.md index 402190c..9e59200 100644 --- a/docs/PYPI_README.md +++ b/docs/PYPI_README.md @@ -6,8 +6,6 @@
-# Litestar HTMX - -The HTMX Plugin for Litestar +# The HTMX Plugin for Litestar See the [documentation](https://docs.litestar.dev/latest/usage/htmx.html) for usage details diff --git a/tests/test_htmx_request.py b/tests/test_htmx_request.py index 0e77026..ef02aed 100644 --- a/tests/test_htmx_request.py +++ b/tests/test_htmx_request.py @@ -1,14 +1,15 @@ from typing import Any, Optional +import pytest from litestar import MediaType, get from litestar.contrib.htmx._utils import HTMXHeaders from litestar.contrib.htmx.request import HTMXRequest from litestar.status_codes import HTTP_200_OK from litestar.testing import create_test_client -import pytest pytestmark = pytest.mark.anyio + def test_health_check() -> None: @get("/health-check", media_type=MediaType.TEXT) def health_check() -> str: diff --git a/tests/test_htmx_response.py b/tests/test_htmx_response.py index 05c37c3..4639704 100644 --- a/tests/test_htmx_response.py +++ b/tests/test_htmx_response.py @@ -2,7 +2,6 @@ from typing import Any import pytest - from litestar import get from litestar.contrib.htmx._utils import HTMXHeaders from litestar.contrib.htmx.request import HTMXRequest @@ -23,10 +22,10 @@ from litestar.status_codes import HTTP_200_OK, HTTP_500_INTERNAL_SERVER_ERROR from litestar.template.config import TemplateConfig from litestar.testing import create_test_client -import pytest pytestmark = pytest.mark.anyio + async def test_hx_stop_polling_response() -> None: @get("/") def handler() -> HXStopPolling: