Add incremental pyright type checking with CI enforcement

Add pyrightconfig.json with basic type checking for zero-error modules
(clocks, metrics, transcriptions, frames) and enforce via CI. The
include list will expand as modules are fixed.
This commit is contained in:
Mark Backman
2026-04-16 18:04:42 -04:00
parent fc1c3b48dc
commit 9bd51cd88c
2 changed files with 20 additions and 0 deletions

View File

@@ -41,3 +41,7 @@ jobs:
- name: Ruff linter (all rules)
id: ruff-check
run: uv run ruff check
- name: Type check (pyright)
id: pyright
run: uv run pyright

16
pyrightconfig.json Normal file
View File

@@ -0,0 +1,16 @@
{
"typeCheckingMode": "basic",
"pythonVersion": "3.11",
"pythonPlatform": "All",
"include": [
"src/pipecat/clocks",
"src/pipecat/metrics",
"src/pipecat/transcriptions",
"src/pipecat/frames"
],
"exclude": [
"**/*_pb2.py",
"**/__pycache__"
],
"reportMissingImports": false
}