Skip to content

Commit

Permalink
chore(build): remove litestar from dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
cofin committed Nov 29, 2024
1 parent d1aa968 commit aa27801
Show file tree
Hide file tree
Showing 8 changed files with 177 additions and 146 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.7.0"
rev: "v0.8.1"
hooks:
- id: ruff
args: ["--fix"]
Expand Down
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from __future__ import annotations

import os
from typing import Any

from litestar_htmx.__metadata__ import __project__ as project
from litestar_htmx.__metadata__ import __version__ as version
Expand Down Expand Up @@ -45,7 +46,7 @@
PY_OBJ = "py:obj"

nitpicky = True
nitpick_ignore = []
nitpick_ignore: list[tuple[str, Any]] = []
nitpick_ignore_regex = [
(PY_RE, r"litestar_htmx.*\.T"),
]
Expand Down
20 changes: 10 additions & 10 deletions litestar_htmx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,25 @@
)

__all__ = (
"HTMXPlugin",
"ClientRedirect",
"ClientRefresh",
"EventAfterType",
"HTMXConfig",
"HTMXDetails",
"HTMXHeaders",
"HTMXPlugin",
"HTMXRequest",
"HXStopPolling",
"HTMXTemplate",
"HXLocation",
"ClientRedirect",
"ClientRefresh",
"HXStopPolling",
"HtmxHeaderType",
"LocationType",
"PushUrl",
"PushUrlType",
"ReSwapMethod",
"ReplaceUrl",
"Reswap",
"Retarget",
"TriggerEvent",
"HTMXTemplate",
"HtmxHeaderType",
"LocationType",
"TriggerEventType",
"EventAfterType",
"PushUrlType",
"ReSwapMethod",
)
2 changes: 1 addition & 1 deletion litestar_htmx/__metadata__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from importlib.metadata import PackageNotFoundError, metadata, version

__all__ = ("__version__", "__project__")
__all__ = ("__project__", "__version__")

try:
__version__ = version("litestar_htmx")
Expand Down
2 changes: 1 addition & 1 deletion litestar_htmx/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

from litestar_htmx._utils import HTMXHeaders

__all__ = ("HTMXDetails", "HTMXRequest", "HTMXHeaders")
__all__ = ("HTMXDetails", "HTMXHeaders", "HTMXRequest")


if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion litestar_htmx/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import TYPE_CHECKING, Any, Literal, TypedDict, Union

__all__ = ("HtmxHeaderType", "LocationType", "TriggerEventType", "EventAfterType", "PushUrlType", "ReSwapMethod")
__all__ = ("EventAfterType", "HtmxHeaderType", "LocationType", "PushUrlType", "ReSwapMethod", "TriggerEventType")

if TYPE_CHECKING:
from typing_extensions import Required
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
authors = [{ name = "Cody Fincher", email = "cody@litestar.dev" }]
dependencies = ["litestar"]
dependencies = []
description = "HTMX Integration for Litesstar"
maintainers = [
{ name = "Litestar Developers", email = "hello@litestar.dev" },
Expand All @@ -13,7 +13,7 @@ maintainers = [
name = "litestar-htmx"
readme = "README.md"
requires-python = ">=3.8, <4.0"
version = "0.3.0"
version = "0.4.0"

[build-system]
build-backend = "hatchling.build"
Expand Down Expand Up @@ -162,7 +162,7 @@ lint.select = [
"SIM", # flake8-simplify
"T10", # flake8-debugger
"T20", # flake8-print
"TCH", # flake8-type-checking
"TC", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pycodestyle - warning
Expand Down Expand Up @@ -205,7 +205,7 @@ classmethod-decorators = ["classmethod"]
known-first-party = ["litestar_htmx", "tests"]

[tool.ruff.lint.per-file-ignores]
"docs/**/*.*" = ["S", "B", "DTZ", "A", "TCH", "ERA", "D", "RET", "PLW0127"]
"docs/**/*.*" = ["S", "B", "DTZ", "A", "TC", "ERA", "D", "RET", "PLW0127"]
"docs/examples/**" = ["T201"]
"tests/**/*.*" = [
"A",
Expand All @@ -228,7 +228,7 @@ known-first-party = ["litestar_htmx", "tests"]
"S",
"S101",
"SIM",
"TCH",
"TC",
"TRY",
]
"tools/**/*.*" = ["D", "ARG", "EM", "TRY", "G", "FBT", "S603", "F811", "PLW0127"]
Expand Down
282 changes: 156 additions & 126 deletions uv.lock

Large diffs are not rendered by default.

0 comments on commit aa27801

Please sign in to comment.