diff --git a/lib/modules/manager/pip-compile/common.spec.ts b/lib/modules/manager/pip-compile/common.spec.ts index f8ae7750b36c47..a465e9a9bccf5f 100644 --- a/lib/modules/manager/pip-compile/common.spec.ts +++ b/lib/modules/manager/pip-compile/common.spec.ts @@ -342,5 +342,10 @@ describe('modules/manager/pip-compile/common', () => { expect(matchManager('file.in')).toBe('pip_requirements'); expect(matchManager('another_file.in')).toBe('pip_requirements'); }); + + it('matches pip_requirements any .txt file', () => { + expect(matchManager('file.txt')).toBe('pip_requirements'); + expect(matchManager('another_file.txt')).toBe('pip_requirements'); + }); }); }); diff --git a/lib/modules/manager/pip-compile/common.ts b/lib/modules/manager/pip-compile/common.ts index 8e4e4906f81a6e..6ec0b128fc9f56 100644 --- a/lib/modules/manager/pip-compile/common.ts +++ b/lib/modules/manager/pip-compile/common.ts @@ -320,7 +320,7 @@ export function matchManager(filename: string): SupportedManagers | 'unknown' { return 'pep621'; } // naive, could be improved, maybe use pip_requirements.fileMatch - if (filename.endsWith('.in')) { + if (filename.endsWith('.in') || filename.endsWith('.txt')) { return 'pip_requirements'; } return 'unknown';