Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ jobs:
with:
version: "0.11.7"
enable-cache: true
- name: Install dependencies
- name: Install typecheck dependencies
if: steps.changes.outputs.run == 'true'
run: make sync
run: make sync-typecheck
- name: Run typecheck
if: steps.changes.outputs.run == 'true'
run: make typecheck
run: make typecheck-no-sync
- name: Skip typecheck
if: steps.changes.outputs.run != 'true'
run: echo "Skipping typecheck for non-code changes."
Expand Down
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
.PHONY: sync
UV_RUN ?= uv run

sync:
uv sync --all-extras --all-packages --group dev

.PHONY: sync-typecheck
sync-typecheck:
uv sync --all-extras --no-default-groups --group typecheck

.PHONY: format
format:
uv run ruff format
Expand All @@ -17,11 +23,11 @@ lint:

.PHONY: mypy
mypy:
uv run mypy . --exclude site
$(UV_RUN) mypy . --exclude site

.PHONY: pyright
pyright:
uv run pyright --project pyrightconfig.json
$(UV_RUN) pyright --project pyrightconfig.json

.PHONY: typecheck
typecheck:
Expand All @@ -36,6 +42,10 @@ typecheck:
wait $$pyright_pid; \
trap - EXIT

.PHONY: typecheck-no-sync
typecheck-no-sync:
$(MAKE) typecheck UV_RUN='uv run --no-sync'

.PHONY: tests
tests: tests-parallel tests-serial

Expand Down
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ temporal = [
]

[dependency-groups]
typecheck = [
"mypy",
"pyright==1.1.408",
"pytest",
"fastapi >= 0.110.0, <1",
"aiosqlite>=0.21.0",
"fakeredis>=2.31.3",
"testcontainers==4.12.0",
"playwright==1.50.0",
"inline-snapshot>=0.20.7",
"sounddevice",
]
dev = [
"mypy",
"ruff==0.9.2",
Expand Down
24 changes: 24 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading