Skip to content

Commit e4dd330

Browse files
authored
fix: updated defaults & upgraded deps (litestar-org#181)
* fix: set local default to 'dev' * feat: upgrade deps and add required upstream changes * feat: move artwork into public folder * fix: flip things around --------- Co-authored-by: Cody Fincher <[email protected]>
1 parent 00275a2 commit e4dd330

File tree

8 files changed

+902
-809
lines changed

8 files changed

+902
-809
lines changed

.env.local.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ SAQ_CONCURRENCY=1
2626
VITE_HOST=localhost
2727
VITE_PORT=5174
2828
VITE_HOT_RELOAD=True
29-
VITE_DEV_MODE=False
29+
VITE_DEV_MODE=True

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.6.0
3+
rev: v5.0.0
44
hooks:
55
- id: check-ast
66
- id: check-case-conflict
@@ -11,7 +11,7 @@ repos:
1111
- id: mixed-line-ending
1212
- id: trailing-whitespace
1313
- repo: https://github.com/charliermarsh/ruff-pre-commit
14-
rev: v0.6.3
14+
rev: v0.6.9
1515
hooks:
1616
- id: ruff
1717
args:
@@ -28,7 +28,7 @@ repos:
2828
exclude: test_*|docs|migrations|scripts
2929
entry: env PYTHONPATH=src slotscheck
3030
- repo: https://github.com/pre-commit/mirrors-mypy
31-
rev: v1.11.2
31+
rev: v1.12.0
3232
hooks:
3333
- id: mypy
3434
exclude: scripts/

package-lock.json

+490-445
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pdm.lock

+402-358
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
File renamed without changes.

src/app/server/builder.py

+3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ def on_app_init(self, app_config: AppConfig) -> AppConfig:
4949
app_config: The :class:`AppConfig <.config.app.AppConfig>` instance.
5050
"""
5151

52+
from uuid import UUID
53+
5254
from advanced_alchemy.exceptions import RepositoryError
5355
from litestar.security.jwt import Token
5456

@@ -70,6 +72,7 @@ def on_app_init(self, app_config: AppConfig) -> AppConfig:
7072
"Token": Token,
7173
"OAuth2Login": OAuth2Login,
7274
"UserModel": UserModel,
75+
"UUID": UUID,
7376
},
7477
)
7578
app_config.exception_handlers = {

tests/integration/test_health.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
pytestmark = pytest.mark.anyio
77

88

9+
@pytest.mark.xfail(reason="Flakey connection to service sometimes causes failures.")
910
async def test_health(client: AsyncClient, valkey_service: None) -> None:
1011
response = await client.get("/health")
11-
assert response.status_code == 500
12+
assert response.status_code == 200
1213

1314
expected = {
1415
"database_status": "online",
15-
"cache_status": "offline",
16+
"cache_status": "online",
1617
"app": "app",
1718
"version": __version__,
1819
}

0 commit comments

Comments
 (0)