Skip to content

fix: 🔨 correct pr-checks workflow to run pyright correctly and execute tests#10

Merged
tmeckel merged 5 commits into
masterfrom
fix/pyright-pre-commit
May 15, 2026
Merged

fix: 🔨 correct pr-checks workflow to run pyright correctly and execute tests#10
tmeckel merged 5 commits into
masterfrom
fix/pyright-pre-commit

Conversation

@tmeckel
Copy link
Copy Markdown
Contributor

@tmeckel tmeckel commented May 15, 2026

No description provided.

tmeckel added 5 commits May 15, 2026 20:10
Add explicit Python 3.11 configuration, workflow read permissions, and a virtual environment setup step that installs project dependencies before running pre-commit checks. This ensures pyright and other tools can resolve installed packages during PR validation.

Also update actions/setup-python to v6 and bump pyright in pre-commit to v1.1.409.
Add explicit asyncio.Task type annotations to internal watcher and consumer tasks to eliminate pyright ignore comments. Fix incorrect None check guarding watcher task cancellation during non-graceful stop. Filter None tasks before passing to asyncio.wait.
Add unit tests covering graceful monitor shutdown scenarios:
- waiting for active watcher and consumer tasks to complete
- cancelling pending tasks after timeout expires
- handling missing consumer task without error
@tmeckel tmeckel merged commit 94de390 into master May 15, 2026
1 check passed
@tmeckel tmeckel deleted the fix/pyright-pre-commit branch May 15, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant