diff --git a/lib/modules/manager/pip-compile/common.spec.ts b/lib/modules/manager/pip-compile/common.spec.ts index ffc8c58a37c9cb574027c7c5cdd7327cdf4a160b..8d39bc116f4a7969e21dbfd93fbea086a67ae02f 100644 --- a/lib/modules/manager/pip-compile/common.spec.ts +++ b/lib/modules/manager/pip-compile/common.spec.ts @@ -1,5 +1,6 @@ import { mockDeep } from 'jest-mock-extended'; import { hostRules } from '../../../../test/util'; +import { logger } from '../../../logger'; import { allowedPipOptions, extractHeaderCommand, @@ -24,7 +25,10 @@ describe('modules/manager/pip-compile/common', () => { it.each([ '-v', '--all-extras', + `--allow-unsafe`, '--generate-hashes', + `--no-emit-index-url`, + `--strip-extras`, '--resolver=backtracking', '--resolver=legacy', '--output-file=reqs.txt', @@ -36,6 +40,7 @@ describe('modules/manager/pip-compile/common', () => { 'reqs.txt', ), ).toBeObject(); + expect(logger.warn).toHaveBeenCalledTimes(0); }); it.each(['--resolver', '--output-file reqs.txt', '--extra = jupyter'])( diff --git a/lib/modules/manager/pip-compile/common.ts b/lib/modules/manager/pip-compile/common.ts index c1dd0534c2a01f0ed677c122be6c35dcefb19ac0..97e96ad17b63094ac3be05e093a152c29c145517 100644 --- a/lib/modules/manager/pip-compile/common.ts +++ b/lib/modules/manager/pip-compile/common.ts @@ -160,7 +160,7 @@ export function extractHeaderCommand( result.indexUrl = value; // TODO: add to secrets? next PR } else { - logger.warn(`pip-compile: option ${arg} not handled`); + logger.debug({ option }, `pip-compile: option not handled`); } continue; } @@ -177,7 +177,7 @@ export function extractHeaderCommand( continue; } - logger.warn(`pip-compile: option ${arg} not handled`); + logger.debug({ option: arg }, `pip-compile: option not handled`); } logger.trace( {