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:
4
.github/workflows/format.yaml
vendored
4
.github/workflows/format.yaml
vendored
@@ -41,3 +41,7 @@ jobs:
|
|||||||
- name: Ruff linter (all rules)
|
- name: Ruff linter (all rules)
|
||||||
id: ruff-check
|
id: ruff-check
|
||||||
run: uv run ruff check
|
run: uv run ruff check
|
||||||
|
|
||||||
|
- name: Type check (pyright)
|
||||||
|
id: pyright
|
||||||
|
run: uv run pyright
|
||||||
|
|||||||
16
pyrightconfig.json
Normal file
16
pyrightconfig.json
Normal 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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user