ci: add pyright, coverage, package validation, concurrency#73
Merged
brendanjryan merged 8 commits intomainfrom Feb 23, 2026
Merged
ci: add pyright, coverage, package validation, concurrency#73brendanjryan merged 8 commits intomainfrom
brendanjryan merged 8 commits intomainfrom
Conversation
- Add pyright type checking to CI (fix 9 src errors, exclude examples/tests for now) - Add coverage enforcement at 90% (currently at 94%) - Add package build + twine check --strict validation - Add concurrency cancellation for stale CI runs - Split CI into lint/test/package jobs with fail-fast: false - Add pyright, build, twine as dev dependencies
…usion - Apply Method.intents protocol fix (property instead of bare attribute) - Fix test_server.py: narrow StarletteResponse type, suppress MockMethod protocol mismatches - Fix test_mcp.py: suppress @pay decorator signature transformation - Fix test_tempo.py: cast Intent to ChargeIntent, suppress intentional type violations in tests, suppress rlp.encode operator - Fix test_mpp_create.py: suppress TempoMethod-specific attr access - Only exclude examples/ from pyright (separate dependency sets)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Pyright type checking
pyrightas dev dependency and CI stepexamples/excluded (separate dependency sets like fastapi/mcp — same as ruff)Coverage enforcement
--cov-fail-under=90to pytest (currently at 94%)Package build validation
python -m build+twine check --strictjobCI structure improvements
concurrencycancellation for stale runs on new pusheslint/test/packagejobsfail-fast: falseto test matrixVersion matrix
fail-fast: falseAll checks pass locally: pyright 0 errors (src + tests), 94% coverage, ruff clean, package builds + validates.