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
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,8 @@ jobs:
- name: Check linting
run: uv run ruff check .

- name: Type check
- name: Type check (mypy)
run: uv run mypy vgi/

- name: Type check (ty)
run: uv run ty check vgi/
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ warn_unused_ignores = true
module = "structlog.*"
ignore_missing_imports = true

[tool.ty.environment]
python-version = "3.12"

[tool.pytest.ini_options]
addopts = "--mypy --ruff"
testpaths = ["tests"]
Expand All @@ -50,4 +53,5 @@ testpaths = ["tests"]
dev = [
"lxml>=6.0.2",
"pytest-timeout>=2.4.0",
"ty>=0.0.8",
]
27 changes: 27 additions & 0 deletions uv.lock

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

2 changes: 1 addition & 1 deletion vgi/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ def start(self) -> None:
)
self._stderr_thread.start()

self._stdout_buffered = io.BufferedReader(self._proc.stdout)
self._stdout_buffered = io.BufferedReader(cast(io.RawIOBase, self._proc.stdout))
assert self._proc.stdin is not None, "stdin pipe not created for worker"
self._stdin_sink = pa.PythonFile(cast(io.IOBase, self._proc.stdin))

Expand Down