From 9bd51cd88c7182246261486bb48087cbadf0a5b7 Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Thu, 16 Apr 2026 18:04:42 -0400 Subject: [PATCH] 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. --- .github/workflows/format.yaml | 4 ++++ pyrightconfig.json | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 pyrightconfig.json diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml index 8284be043..c02245708 100644 --- a/.github/workflows/format.yaml +++ b/.github/workflows/format.yaml @@ -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 diff --git a/pyrightconfig.json b/pyrightconfig.json new file mode 100644 index 000000000..fbca2b790 --- /dev/null +++ b/pyrightconfig.json @@ -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 +}