Skip to content

Commit ea2e723

Browse files
committed
fix: dont run pre-commit twice
1 parent 27373b7 commit ea2e723

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

src/realtime/Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
.PHONY: pytest pre-commit mypy tests infra stop-infra
22

3-
pre-commit:
4-
uv run pre-commit run --all-files
5-
63
mypy:
74
uv run --exact --package realtime mypy src/realtime
85

@@ -12,7 +9,7 @@ infra:
129
stop-infra:
1310
supabase --workdir infra stop
1411

15-
tests: pre-commit mypy infra pytest
12+
tests: mypy infra pytest
1613

1714
pytest:
1815
uv run --exact --package realtime pytest --cov=realtime --cov-report=xml --cov-report=html -vv

src/supabase/Makefile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
.PHONY: pytest pre-commit unasync build-sync tests
22

33
pytest:
4-
uv run --package --exact supabase pytest --cov=./ --cov-report=xml --cov-report=html -vv
5-
6-
pre-commit:
7-
uv run pre-commit run --all-files
4+
uv run --exact --package supabase pytest --cov=./ --cov-report=xml --cov-report=html -vv
85

96
unasync:
107
uv run run-unasync.py
11-
128
build-sync: unasync
139
sed -i 's/asyncio.create_task(self.realtime.set_auth(access_token))//g' src/supabase/_sync/client.py
1410
sed -i 's/asynch/synch/g' src/supabase/_sync/auth_client.py
@@ -19,4 +15,4 @@ build-sync: unasync
1915
sed -i 's/SyncHTTPTransport/HTTPTransport/g' tests/_sync/test_client.py
2016
sed -i 's/SyncMock/Mock/g' tests/_sync/test_client.py
2117

22-
tests: pre-commit pytest
18+
tests: pytest

0 commit comments

Comments
 (0)