Skip to content

Commit 6fc5e9e

Browse files
committed
chore: lint issues
1 parent 1540d22 commit 6fc5e9e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Litestar/Plugins/LitestarVite/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def name(self) -> str: # noqa: D102
1616
def description(self) -> str: # noqa: D102
1717
return "Vite integration for frontend assets in Litestar"
1818

19-
def post_generate(self, config: ProjectConfig, output_dir: Path) -> None: # noqa: ARG002, PLR6301
19+
def post_generate(self, config: ProjectConfig, output_dir: Path) -> None: # noqa: ARG002
2020
"""Run Litestar Vite setup."""
2121
subprocess.run(
2222
["uv", "run", "litestar", "assets", "init", "--frontend-dir", "frontend"], # noqa: S607
@@ -30,7 +30,7 @@ def _update_app_config(self, app_path: Path) -> None:
3030
if not app_path.exists():
3131
return
3232

33-
content = app_path.read_text()
33+
content = app_path.read_text(encoding="utf-8")
3434

3535
# Update imports
3636
if "from config import settings" in content and "vite_config" not in content:
@@ -49,4 +49,4 @@ def _update_app_config(self, app_path: Path) -> None:
4949
if bootstrap_config in content:
5050
content = content.replace(bootstrap_config, full_config)
5151

52-
app_path.write_text(content)
52+
app_path.write_text(content, encoding="utf-8")

0 commit comments

Comments
 (0)