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
9 changes: 7 additions & 2 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
pyright:
permissions:
contents: read
name: Pyright data-flow checks
name: Pyright data-flow + typed storage slice
runs-on: ubuntu-latest
timeout-minutes: 8

Expand All @@ -101,9 +101,14 @@ jobs:
with:
node-version: "24"

- name: Run Pyright
# Narrow diagnostics across prks_app.py + backend (typeCheckingMode: off).
- name: Run Pyright data-flow checks
run: npm exec --yes --ignore-scripts --package="pyright@${PYRIGHT_VERSION}" -- pyright --project pyrightconfig.json

# Genuine basic type checking for the first #69 slice: backend/storage.
- name: Run Pyright typed slice (backend/storage, basic)
run: npm exec --yes --ignore-scripts --package="pyright@${PYRIGHT_VERSION}" -- pyright --project pyrightconfig.typed-slice.json

eslint:
permissions:
contents: read
Expand Down
13 changes: 13 additions & 0 deletions pyrightconfig.typed-slice.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"include": [
"backend/storage"
],
"exclude": [
"**/__pycache__"
],
"pythonVersion": "3.12",
"typeCheckingMode": "basic",
"reportUndefinedVariable": "error",
"reportUnboundVariable": "error",
"reportUnusedExcept": "error"
}
Loading
Loading