Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
  • Loading branch information
NextFire and secustor authored Oct 14, 2024
1 parent ade24e8 commit 1549a24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/modules/manager/pep621/processors/uv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,11 @@ export class UvProcessor implements PyProjectProcessor {

function applyGitSource(
dep: PackageDependency,
depSource: z.infer<typeof UvGitSource>,
depSource: UvGitSource,
): void {
const { git, rev, tag, branch } = depSource;
if (tag) {
const { source, owner, name } = parseGitUrl(git);
const repo = `${owner}/${name}`;
const { source, full_name: repo } = parseGitUrl(git);
if (source === 'github.com') {
dep.datasource = GithubTagsDatasource.id;
dep.packageName = repo;
Expand Down
1 change: 1 addition & 0 deletions lib/modules/manager/pep621/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export const UvGitSource = z.object({
tag: z.string().optional(),
branch: z.string().optional(),
});
export type UvGitSource = z.infer<typeof UvGitSource>

const UvUrlSource = z.object({
url: z.string(),
Expand Down

0 comments on commit 1549a24

Please sign in to comment.