Skip to content

Commit 40631eb

Browse files
committed
fix: add mypy check for realtime
1 parent 5d944b7 commit 40631eb

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ default:
1111
@just --list
1212

1313
[doc("Run all available tests")]
14-
test: realtime::pytest && supabase::pytest
14+
test: realtime::test && supabase::test
1515

1616
[doc("Run pre-commit on all files")]
1717
pre-commit:

src/realtime/mod.just

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ default:
77
pytest: infra
88
uv run --exact --package realtime pytest --cov=./ --cov-report=xml --cov-report=html
99

10+
[doc("Run mypy in realtime")]
11+
mypy:
12+
uv run --exact --package realtime mypy src/realtime
13+
1014
[doc("Start the supabase docker instance for realtime")]
1115
infra:
1216
supabase start --workdir infra -x studio,mailpit,edge-runtime,logflare,vector,supavisor,imgproxy,storage-api
17+
18+
[doc("Run relevant tests for realtime")]
19+
test: pytest && mypy

src/supabase/mod.just

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ build_sync: unasync
2020
sed -i "" 's/SyncClient/Client/g' tests/_sync/test_client.py
2121
sed -i "" 's/SyncHTTPTransport/HTTPTransport/g' tests/_sync/test_client.py
2222
sed -i "" 's/SyncMock/Mock/g' tests/_sync/test_client.py
23+
24+
[doc("Run all supabase tests")]
25+
test: pytest

0 commit comments

Comments
 (0)