Skip to content

Commit

Permalink
fix: updated defaults & upgraded deps (#181)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
cofin and cofin authored Oct 17, 2024
1 parent 00275a2 commit e4dd330
Show file tree
Hide file tree
Showing 8 changed files with 902 additions and 809 deletions.
2 changes: 1 addition & 1 deletion .env.local.example
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ SAQ_CONCURRENCY=1
VITE_HOST=localhost
VITE_PORT=5174
VITE_HOT_RELOAD=True
VITE_DEV_MODE=False
VITE_DEV_MODE=True
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-ast
- id: check-case-conflict
Expand All @@ -11,7 +11,7 @@ repos:
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.6.3
rev: v0.6.9
hooks:
- id: ruff
args:
Expand All @@ -28,7 +28,7 @@ repos:
exclude: test_*|docs|migrations|scripts
entry: env PYTHONPATH=src slotscheck
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
rev: v1.12.0
hooks:
- id: mypy
exclude: scripts/
Expand Down
935 changes: 490 additions & 445 deletions package-lock.json

Large diffs are not rendered by default.

760 changes: 402 additions & 358 deletions pdm.lock

Large diffs are not rendered by default.

File renamed without changes
File renamed without changes
3 changes: 3 additions & 0 deletions src/app/server/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def on_app_init(self, app_config: AppConfig) -> AppConfig:
app_config: The :class:`AppConfig <.config.app.AppConfig>` instance.
"""

from uuid import UUID

from advanced_alchemy.exceptions import RepositoryError
from litestar.security.jwt import Token

Expand All @@ -70,6 +72,7 @@ def on_app_init(self, app_config: AppConfig) -> AppConfig:
"Token": Token,
"OAuth2Login": OAuth2Login,
"UserModel": UserModel,
"UUID": UUID,
},
)
app_config.exception_handlers = {
Expand Down
5 changes: 3 additions & 2 deletions tests/integration/test_health.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
pytestmark = pytest.mark.anyio


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

expected = {
"database_status": "online",
"cache_status": "offline",
"cache_status": "online",
"app": "app",
"version": __version__,
}
Expand Down

0 comments on commit e4dd330

Please sign in to comment.