Use URI repo for uv-pre-commit hook in requirements.txt tool#1589
Merged
nathanjmcdougall merged 5 commits intomainfrom Mar 27, 2026
Merged
Use URI repo for uv-pre-commit hook in requirements.txt tool#1589nathanjmcdougall merged 5 commits intomainfrom
nathanjmcdougall merged 5 commits intomainfrom
Conversation
…hook Changes: - Use UriRepo with https://github.com/astral-sh/uv-pre-commit instead of LocalRepo - Add sync-with-uv repo-to-package config to pyproject.toml - Add 'uv' dependency to 'uv' group (non-default) for sync-with-uv - Add 'default' parameter to add_deps_to_group for non-default groups - Update test expectations for new pre-commit config format Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/134ba007-5ede-4f61-8803-e7fa3a6976b2 Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/134ba007-5ede-4f61-8803-e7fa3a6976b2 Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update usethis tool requirements with URI repo for uv and pre-commit
Use URI repo for uv-pre-commit hook in requirements.txt tool
Mar 27, 2026
nathanjmcdougall
requested changes
Mar 27, 2026
nathanjmcdougall
requested changes
Mar 27, 2026
…ration Extract _register_default_group helper to keep assert_never pattern while staying within the branch limit. Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/98eadb13-f716-4990-b807-154bf9064bc7 Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
…rements.txt tool Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/58e11ac0-09a6-4cf2-ad63-422a4f3a5354 Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
nathanjmcdougall
approved these changes
Mar 27, 2026
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.
RequirementsTxtToolSpec.pre_commit_config()to useUriRepowithhttps://github.com/astral-sh/uv-pre-commitandFALLBACK_UV_VERSIONrev instead ofLocalRepoconfig_spec()toRequirementsTxtToolSpecfor[tool.sync-with-uv.repo-to-package]mapping in pyproject.tomluse_requirements_txt()in_core/tool.pyto adduvdep touvgroup (non-default) and add configsdefaultparameter toadd_deps_to_group()in_deps.pyto allow non-default dependency groupsassert_neverin_register_default_groupSkills used:
usethis-qa-static-checks⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.