Skip to content

Commit 720829a

Browse files
committed
fix: support dependency-groups
1 parent 15f3850 commit 720829a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sync_uv_pre_commit/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,11 @@ def resolve_pyproject(
7676
command.extend(chain.from_iterable(("--group", group) for group in groups))
7777
if no_dev:
7878
command.append("--no-dev")
79-
command.append(str(pyproject))
8079

8180
logger.info("Running command:\n %s", " ".join(command))
8281

8382
uv_process = subprocess.run( # noqa: S603
84-
command, cwd=temp_directory, check=False, capture_output=True, text=True
83+
command, check=False, capture_output=True, text=True
8584
)
8685
try:
8786
uv_process.check_returncode()
@@ -143,6 +142,7 @@ def process( # noqa: PLR0913
143142
logger.info("Processing args:")
144143
for arg in args:
145144
logger.info(" - `%s`", arg)
145+
pyproject = Path(pyproject).resolve()
146146
logger.info("Processing pyproject: `%s`", pyproject)
147147
logger.info("Processing pre_commit: `%s`", pre_commit)
148148

0 commit comments

Comments
 (0)