Skip to content

Commit

Permalink
feat: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cofin committed Dec 28, 2024
1 parent af703e4 commit b744a6d
Show file tree
Hide file tree
Showing 13 changed files with 1,132 additions and 534 deletions.
480 changes: 473 additions & 7 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 11 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ nodeenv = ["nodeenv"]
build-backend = "hatchling.build"
requires = ["hatchling"]

[tool.hatch.build]
dev-mode-dirs = ["src/py", "."]

[tool.hatch.build.targets.sdist]
dev-mode-dirs = ["src/py", "."]
exclude = [".github", "docs"]
packages = ["src/py/litestar_vite", "src/py/tests"]
include = ["src/py/*","src/js/*"]
skip-excluded-dirs = false

Expand Down Expand Up @@ -76,7 +76,7 @@ test = [
"pytest>=7.4.1",
"pytest-cov",
"coverage",
"anyio",
"pytest-asyncio",
"pytest-sugar",
"pytest-mock>=3.11.1",
"pytest-xdist>=3.6.1",
Expand Down Expand Up @@ -151,8 +151,14 @@ search = ' "litestar-vite-plugin": "^{current_version}",'

[tool.pytest.ini_options]
addopts = ["-q", "-ra"]
filterwarnings = ["ignore::DeprecationWarning:pkg_resources.*"]
testpaths = ["src/py/tests"]
filterwarnings = [
"ignore::DeprecationWarning:pkg_resources.*",
]
testpaths = ["tests", "src/py/tests"]
tmp_path_retention_policy = "failed"
tmp_path_retention_count = 3
asyncio_default_fixture_loop_scope = "function"
asyncio_mode = "auto"

[tool.coverage.report]
exclude_lines = [
Expand Down
21 changes: 12 additions & 9 deletions src/py/litestar_vite/inertia/__init__.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
from .config import InertiaConfig
from .exception_handler import create_inertia_exception_response, exception_to_http_response
from .middleware import InertiaMiddleware
from .plugin import InertiaPlugin
from .request import InertiaDetails, InertiaHeaders, InertiaRequest
from .response import (
from litestar_vite.inertia import helpers
from litestar_vite.inertia.config import InertiaConfig
from litestar_vite.inertia.exception_handler import create_inertia_exception_response, exception_to_http_response
from litestar_vite.inertia.helpers import error, get_shared_props, js_routes_script, lazy, share
from litestar_vite.inertia.middleware import InertiaMiddleware
from litestar_vite.inertia.plugin import InertiaPlugin
from litestar_vite.inertia.request import InertiaDetails, InertiaHeaders, InertiaRequest
from litestar_vite.inertia.response import (
InertiaBack,
InertiaExternalRedirect,
InertiaRedirect,
InertiaResponse,
error,
get_shared_props,
share,
)

from .routes import generate_js_routes

__all__ = (
Expand All @@ -30,5 +30,8 @@
"exception_to_http_response",
"generate_js_routes",
"get_shared_props",
"helpers",
"js_routes_script",
"lazy",
"share",
)
3 changes: 2 additions & 1 deletion src/py/litestar_vite/inertia/exception_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
HTTP_500_INTERNAL_SERVER_ERROR,
)

from litestar_vite.inertia.response import InertiaBack, InertiaRedirect, InertiaResponse, error
from litestar_vite.inertia.helpers import error
from litestar_vite.inertia.response import InertiaBack, InertiaRedirect, InertiaResponse

if TYPE_CHECKING:
from litestar.connection import Request
Expand Down
Loading

0 comments on commit b744a6d

Please sign in to comment.