Repository navigation
ci+docs: run pytest-substrate in primary CI and surface Python onboarding (#366) - #376
Merged
Merged
Conversation
…ding (#366) The pytest-substrate package (python/) was real but never exercised by CI and nearly invisible in the docs. - New CI 'Python (pytest-substrate)' job: builds the substrate binary, installs the package, and runs ruff + pytest (32 tests) + wheel build on every PR. - Add an explicit [tool.ruff] config (line-length 120; E/F/I/SIM/BLE/UP) and clear the pre-existing lint findings it surfaced (import order, unused imports, nested with-statements, a blind-except noqa on the intentional health-poll). - Docs: Getting Started gains a 'First Python test' section; README lists the pytest plugin as a third usage mode; a language-agnostic pointer sits under the Go example. Closes #366.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Third PR of the v0.76.0 milestone. The
pytest-substratepackage (python/) was a real, functional package — session-scoped server fixture, per-test state reset, boto3 wiring — but primary CI never ran it and it was nearly invisible in the docs.CI
New Python (pytest-substrate) job: builds the substrate binary, installs the package, and runs
ruff+pytest(32 tests) + a wheel build on every PR. A published package is now exercised by CI.Lint
Added an explicit
[tool.ruff]config (line-length 120 — matching the code's actual style — with E/F/I/SIM/BLE/UP) and cleared the pre-existing findings it surfaced: import ordering, unused imports, nestedwithstatements, and an intentional blind-except in the health-poll loop (kept, with a# noqa: BLE001explaining why). No behavior change.Docs
Verified locally: 32 pytest pass, ruff clean, wheel builds.
Closes #366. Part of v0.76.0.