Skip to content

Commit f345807

Browse files
authored
Detect pyup as an automated dependency update tool (#2226)
Signed-off-by: Jeremy Katz <jeremy@tidelift.com> Signed-off-by: Jeremy Katz <jeremy@tidelift.com>
1 parent d13ba3f commit f345807

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

checks/raw/dependency_update_tool.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,19 @@ var checkDependencyFileExists fileparser.DoWhileTrueOnFilename = func(name strin
9999
},
100100
},
101101
})
102+
case ".pyup.yml":
103+
*ptools = append(*ptools, checker.Tool{
104+
Name: "PyUp",
105+
URL: asPointer("https://pyup.io/"),
106+
Desc: asPointer("Automated dependency updates for Python."),
107+
Files: []checker.File{
108+
{
109+
Path: name,
110+
Type: checker.FileTypeSource,
111+
Offset: checker.OffsetDefault,
112+
},
113+
},
114+
})
102115
default:
103116
// Continue iterating.
104117
return true, nil

checks/raw/dependency_update_tool_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,15 @@ func Test_checkDependencyFileExists(t *testing.T) {
110110
want: false,
111111
wantErr: false,
112112
},
113+
{
114+
name: ".pyup.yml",
115+
args: args{
116+
name: ".pyup.yml",
117+
data: &[]checker.Tool{},
118+
},
119+
want: false,
120+
wantErr: false,
121+
},
113122
}
114123
for _, tt := range tests {
115124
tt := tt

0 commit comments

Comments
 (0)