Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
run: uv run pytest server/tests

- name: Run Python type checks
run: uvx pyright server shared
run: uv run ty check

darktable-build:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ uv run pytest server/tests
Run Python type checking:

```bash
uvx pyright server shared
uv run ty check
```

Run local pre-commit checks:
Expand Down
17 changes: 11 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies = [
[project.optional-dependencies]
dev = [
"pre-commit>=4.3,<5.0",
"pyright>=1.1.408,<2.0",
"ty>=0.0.1a15,<0.1",
"pytest>=8.3,<9.0",
]

Expand All @@ -34,10 +34,15 @@ include = ["server*", "shared*"]
[tool.setuptools.package-data]
server = ["codex_bridge/prompts/**/*.txt", "codex_bridge/prompts/**/*.j2"]

[tool.pyright]
[tool.ty.src]
include = ["server", "shared"]
exclude = ["server/tests"]
venvPath = "."
venv = ".venv"
pythonVersion = "3.14"
typeCheckingMode = "basic"

[tool.ty.environment]
python = ".venv"
python-version = "3.14"

[tool.ty.rules]
invalid-assignment = "ignore"
invalid-return-type = "ignore"
unresolved-attribute = "ignore"
2 changes: 1 addition & 1 deletion scripts/typecheck-python.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
set -euo pipefail

uvx pyright server shared
uv run ty check