Skip to content

Commit 2dd4bfe

Browse files
Don't output pyproject.toml contents in uv subprocess fail error messsages
1 parent e2e9934 commit 2dd4bfe

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

  • src/usethis/_integrations/backend/uv

src/usethis/_integrations/backend/uv/deps.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from typing import TYPE_CHECKING
44

5-
from usethis._config import usethis_config
65
from usethis._integrations.backend.uv.call import call_uv_subprocess
76
from usethis._integrations.backend.uv.errors import (
87
UVDepGroupError,
@@ -23,7 +22,6 @@ def add_dep_to_group_via_uv(dep: Dependency, group: str):
2322
)
2423
except UVSubprocessFailedError as err:
2524
msg = f"Failed to add '{dep}' to the '{group}' dependency group:\n{err}"
26-
msg += (usethis_config.cpd() / "pyproject.toml").read_text()
2725
raise UVDepGroupError(msg) from None
2826

2927

0 commit comments

Comments
 (0)