Skip to content

Commit 4f5fc87

Browse files
authored
fix: add annotation to return type (#4)
1 parent 2064108 commit 4f5fc87

3 files changed

Lines changed: 20 additions & 20 deletions

File tree

litestar_htmx/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
class HTMXPlugin(InitPluginProtocol):
2828
"""Flash messages Plugin."""
2929

30-
def __init__(self):
30+
def __init__(self) -> None:
3131
"""Initialize the plugin."""
3232

3333
def on_app_init(self, app_config: AppConfig) -> AppConfig:

pyproject.toml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ maintainers = [
1313
name = "litestar-htmx"
1414
readme = "README.md"
1515
requires-python = ">=3.8, <4.0"
16-
version = "0.2.2"
16+
version = "0.2.3"
1717

1818
[build-system]
1919
build-backend = "hatchling.build"
@@ -69,34 +69,34 @@ ignore-words-list = "te"
6969
skip = 'uv.lock'
7070

7171
[tool.coverage.run]
72-
omit = ["*/tests/*"]
73-
plugins = ["covdefaults"]
74-
source = ["litestar_htmx"]
7572
branch = true
7673
concurrency = ["multiprocessing"]
7774
disable_warnings = ["no-data-collected", "module-not-measured", "module-not-imported"]
75+
omit = ["*/tests/*"]
7876
parallel = true
77+
plugins = ["covdefaults"]
78+
source = ["litestar_htmx"]
7979

8080
[tool.coverage.report]
8181
# Regexes for lines to exclude from consideration
8282
exclude_lines = [
83-
# Have to re-enable the standard pragma
84-
"pragma: no cover",
83+
# Have to re-enable the standard pragma
84+
"pragma: no cover",
8585

86-
# Don't complain about missing debug-only code:
87-
"def __repr__",
88-
"if self\\.debug",
86+
# Don't complain about missing debug-only code:
87+
"def __repr__",
88+
"if self\\.debug",
8989

90-
# Don't complain if tests don't hit defensive assertion code:
91-
"raise AssertionError",
92-
"raise NotImplementedError",
90+
# Don't complain if tests don't hit defensive assertion code:
91+
"raise AssertionError",
92+
"raise NotImplementedError",
9393

94-
# Don't complain if non-runnable code isn't run:
95-
"if 0:",
96-
"if __name__ == .__main__.:",
97-
"if TYPE_CHECKING:",
98-
'class .*\bProtocol\):',
99-
'@(abc\.)?abstractmethod',
94+
# Don't complain if non-runnable code isn't run:
95+
"if 0:",
96+
"if __name__ == .__main__.:",
97+
"if TYPE_CHECKING:",
98+
'class .*\bProtocol\):',
99+
'@(abc\.)?abstractmethod',
100100
]
101101

102102
[tool.pytest.ini_options]

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)