Always use --build-backend hatch for uv init subprocesses from `u…#901
Merged
nathanjmcdougall merged 2 commits intomainfrom Jul 23, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR modifies the opinionated_uv_init function to explicitly specify the build backend as "hatch" when initializing projects with uv init. The change ensures consistent use of the hatchling build system across all project initializations.
Key changes:
- Added
--build-backend hatcharguments to theuv initsubprocess call - Added a test to verify that the build backend is correctly set to "hatchling.build"
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/usethis/_integrations/uv/init.py | Modified opinionated_uv_init to include --build-backend hatch arguments |
| tests/usethis/_integrations/uv/test_init.py | Added test case to verify build backend configuration |
Comments suppressed due to low confidence (1)
tests/usethis/_integrations/uv/test_init.py:50
- [nitpick] The test method name should be more descriptive. Consider renaming to
test_opinionated_uv_init_sets_build_backend_to_hatchto better describe what specific behavior is being tested.
def test_build_backend_is_hatch(self, tmp_path: Path):
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. 📢 Thoughts on this report? Let us know! |
CodSpeed Instrumentation Performance ReportMerging #901 will not alter performanceComparing Summary
|
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.
…sethis init`