Skip to content

Add support for uv.toml #538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 21, 2025
Merged

Conversation

nathanjmcdougall
Copy link
Collaborator

No description provided.

@nathanjmcdougall nathanjmcdougall linked an issue Apr 21, 2025 that may be closed by this pull request
Copy link

codspeed-hq bot commented Apr 21, 2025

CodSpeed Performance Report

Merging #538 will not alter performance

Comparing 537-properly-support-uvtoml (8defbe5) with main (43566dc)

Summary

✅ 1 untouched benchmarks

Copy link

codecov bot commented Apr 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.27%. Comparing base (43566dc) to head (8defbe5).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #538   +/-   ##
=======================================
  Coverage   97.26%   97.27%           
=======================================
  Files          86       87    +1     
  Lines        4130     4142   +12     
=======================================
+ Hits         4017     4029   +12     
  Misses        113      113           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nathanjmcdougall nathanjmcdougall marked this pull request as ready for review April 21, 2025 04:14
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for a new configuration file, uv.toml, to manage default dependency groups for uv integration. Key changes include:

  • Introducing UVTOMLManager in src/usethis/_integrations/uv/toml.py to handle uv.toml.
  • Updating dependency functions in deps.py to conditionally use uv.toml over pyproject.toml.
  • Adding and updating tests across the integrations and core sections to validate uv.toml functionality.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/usethis/_integrations/uv/test_deps.py Added tests for default group handling using uv.toml.
tests/usethis/_core/test_core_tool.py Added a new test using uv.toml to register default groups (missing import).
src/usethis/_integrations/uv/toml.py New module implementing UVTOMLManager.
src/usethis/_integrations/uv/deps.py Updated dependency functions to incorporate uv.toml support.
src/usethis/_config_file.py Enhanced files_manager by including UVTOMLManager.
Comments suppressed due to low confidence (1)

tests/usethis/_core/test_core_tool.py:1997

  • The 'files_manager' function is invoked in this test but is not imported in the file. Please add 'from usethis._config_file import files_manager' to ensure the test runs correctly.
with change_cwd(tmp_path), files_manager():

@nathanjmcdougall nathanjmcdougall merged commit 3314678 into main Apr 21, 2025
17 checks passed
@nathanjmcdougall nathanjmcdougall deleted the 537-properly-support-uvtoml branch April 21, 2025 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Properly support uv.toml
1 participant