Repository navigation
Fix static analysis findings in CI workflows and tests - #8
Merged
Merged
Conversation
- Install build and poetry in CI from hash-pinned requirements, wheels only - Make poetry install use wheels only (POETRY_INSTALLER_ONLY_BINARY) - Drop redundant binascii.Error catch (subclass of ValueError) - Split composite assertion and duplicate-expression assertion in tests - Keep a single possibly-raising call inside pytest.raises blocks Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 0 |
🟢 Coverage 0.00% diff coverage · -0.01% coverage variation
Metric Results Coverage variation ✅ -0.01% coverage variation (-1.00%) Diff coverage ✅ 0.00% diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (e56d61e) 444 422 95.05% Head commit (6e8e788) 443 (-1) 421 (-1) 95.03% (-0.01%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#8) 1 0 0.00% Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
|
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.



Summary
Fixes static analysis findings in the CI workflows, the SDK and the tests.
CI supply chain
build(publish) andpoetry(test) now install from hash-locked files in.github/requirements/, using--only-binary :all: --require-hashes. No unpinned versions, and no setup scripts run from source distributions.poetry installruns withPOETRY_INSTALLER_ONLY_BINARY=":all:". Every package inpoetry.lockhas Linux wheels for Python 3.11–3.14, so this doesn't break the matrix..infile and regenerate its.txt:uv pip compile --generate-hashes --universal --python-version 3.11 --only-binary :all: .github/requirements/<name>.in -o .github/requirements/<name>.txtCode and tests
knf.decode_key: catchesValueErroronly, sincebinascii.Erroris a subclass of it.share_textfresh-key test).pytest.raisesblock now holds only the call expected to raise. Arguments are built before the block.Testing
poetry install --with devwith only-binary set. All 124 tests pass on both.python -m buildwith the pinnedbuildbuilds both the sdist and the wheel.🤖 Generated with Claude Code