Skip to content

Commit

Permalink
refactor(pep621): use LooseArray
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Poxhofer <[email protected]>
  • Loading branch information
mkniewallner and secustor authored Oct 26, 2024
1 parent 7692f5e commit d946720
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/modules/manager/pep621/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,8 @@ export const PyProjectSchema = z.object({
'dependency-groups': z
.record(
z.string(),
z
.array(z.union([z.string(), z.object({})]))
// Skip non-string entries, like `{include-group = "typing"}`, as they are not dependencies.
.transform((deps) => deps.filter(is.string)),
// Skip non-string entries, like `{include-group = "typing"}`, as they are not dependencies.
LooseArray(z.string())
)
.optional(),
tool: z
Expand Down

0 comments on commit d946720

Please sign in to comment.