Skip to content

Commit 29eba3a

Browse files
committed
fix: strip groups
1 parent 32a33f0 commit 29eba3a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sync_uv_pre_commit/cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ def resolve_pyproject(
8484
]
8585
extras = tuple(ext for extra in extras if (ext := extra.strip()) in valid_extras)
8686
logger.debug("extras: %s", extras)
87+
groups = tuple(grp for group in groups if (grp := group.strip()) in valid_groups)
88+
logger.debug("groups: %s", groups)
8789
if extras:
8890
command.extend(chain.from_iterable(("--extra", extra) for extra in extras))
8991
if groups:

0 commit comments

Comments
 (0)