Skip to content

Sync repository tooling with the current library template - #1551

Merged
frenck merged 2 commits into
mainfrom
frenck/sync-with-template
Sep 30, 2026
Merged

frenck merged 2 commits into
mainfrom
frenck/sync-with-template

Conversation

@frenck

@frenck frenck commented Sep 30, 2026

Copy link
Copy Markdown
Owner

Proposed Changes

(Describe the changes and rationale behind them)

This brings python-radios in line with python-solaredged, so my libraries share the same setup again. No functional changes to the client itself.

Breaking: the minimum supported Python version is now 3.12. Python 3.15 is added to the test matrix.

Tooling:

  • Move to a PEP 621 [project] table on Poetry 2.
  • Replace mypy with ty, pre-commit with prek, and aresponses with aioresponses.
  • Bump all development dependencies, drop safety (dependency review covers it).
  • Stricter pytest config: --strict-markers, --strict-config and xfail_strict.

CI:

  • All workflows get concurrency groups and job timeouts, and the action updates from the template.
  • CodeQL uses the matrix setup with buildless Python extraction.
  • The coverage job now actually enforces the coverage threshold.
  • Releases generate a CycloneDX SBOM with attestations; this replaces the sigstore signing step.
  • Add OpenSSF Scorecard, dependency review and zizmor. Drop SonarCloud and the stale workflow.

Fixes found along the way:

  • The prettier hook never ran. types: [yaml, json, markdown] is an AND filter, so no file ever matched. It is now types_or.
  • .editorconfig used ident_size everywhere, so editors ignored the whole file.
  • The Contributing link in the README pointed to a file that does not exist in the root.

Documentation:

  • Refreshed CONTRIBUTING, pull request template and issue forms.
  • Added a security policy, an AI policy, and AGENTS.md (with CLAUDE.md as a symlink).
  • README gets a disclaimer section.

Related Issues

(Github link to related issues or pull requests)

None.

Bring python-radios in line with python-solaredged, so the libraries share
the same setup again.

- Move to a PEP 621 [project] table on Poetry 2.
- Replace mypy with ty, pre-commit with prek, and aresponses with
  aioresponses.
- Drop Python 3.11, add Python 3.15 to the test matrix.
- Update all workflows: concurrency, job timeouts, pinned action updates,
  CodeQL matrix, enforced coverage gate, SBOM and attestations on release.
- Add Scorecard, dependency review and zizmor; drop SonarCloud, safety and
  the stale workflow.
- Fix the prettier hook, which never ran: `types` is an AND filter, it
  needs `types_or`.
- Fix .editorconfig, which used `ident_size` and was ignored entirely.
- Refresh CONTRIBUTING, the PR and issue templates, add a security policy,
  an AI policy and AGENTS.md.
@frenck frenck added maintenance Generic maintenance tasks. breaking-change A breaking change for existing users. labels Sep 30, 2026
The runners have no stable 3.15 build yet, so setup-python fails to find
it. Same setup as python-solaredged: once 3.15 ships, this resolves to the
stable build.
@frenck
frenck merged commit 9fd5d0f into main Sep 30, 2026
28 checks passed
@frenck
frenck deleted the frenck/sync-with-template branch September 30, 2026 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change A breaking change for existing users. maintenance Generic maintenance tasks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant