Adopt the src layout, VCS versioning and supply chain pinning - #1057
Merged
Conversation
Moves the package to `src/pertpy` and derives the version from the git tags with hatch-vcs, both as the scverse cookiecutter recommends, and drops the `<3.15` upper bound on `requires-python`. Pins every pre-commit hook to a commit SHA and lets Dependabot update the pre-commit ecosystem alongside the actions, which closes the remaining supply chain gaps that scverse/repo-health flags.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1057 +/- ##
=======================================
Coverage 78.81% 78.81%
=======================================
Files 52 52
Lines 7280 7280
=======================================
Hits 5738 5738
Misses 1542 1542
🚀 New features to boost your workflow:
|
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.
Aligns packaging with the scverse cookiecutter and closes the supply chain gaps that repo-health flags.
Packaging
pertpy/moves tosrc/pertpy/, withtool.hatch.build.targets.wheel.packagespointing at it. The built wheel is unchanged:pertpy/at the top level,py.typedincluded.hatch-vcs, so releases no longer need apyproject.tomledit — just the tag.docs/conf.pyalready read the version from the installed metadata, so it needed no change.requires-pythondrops the<3.15upper bound.tool.coverage.pathsmaps the installed package back ontosrc, so codecov still annotates the repository files.Read the Docs shallow-clones and fetches only the branch being built, which makes VCS versioning report a wrong version. The
post_checkoutjob in.readthedocs.ymlis the remedy RTD documents for exactly this.Supply chain
# frozen:form (security/precommit-pinned).security/dependabot).Actions were already SHA-pinned and every workflow already declares a minimal top-level
permissions:, sosecurity/actions-pinnedand the workflow half ofsecurity/workflow-permissionswere already green.