Skip to content

Commit

Permalink
feat: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
cofin committed Oct 20, 2024
1 parent 054637a commit 9df9e38
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
<div align="center">
<!-- markdownlint-restore -->

# 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
4 changes: 1 addition & 3 deletions docs/PYPI_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
<div align="center">
<!-- markdownlint-restore -->

# 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
3 changes: 2 additions & 1 deletion tests/test_htmx_request.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
3 changes: 1 addition & 2 deletions tests/test_htmx_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 9df9e38

Please sign in to comment.