From 0099a4825b56eb71fed0cf70a73275a32fd30b64 Mon Sep 17 00:00:00 2001 From: Jia Wei Kho Date: Sun, 15 Dec 2024 15:36:58 +0000 Subject: [PATCH] Remove jinja templates in poetry pyproject --- lib/modules/manager/poetry/artifacts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/manager/poetry/artifacts.ts b/lib/modules/manager/poetry/artifacts.ts index d5582f619c5910..5888c7dbeee9a4 100644 --- a/lib/modules/manager/poetry/artifacts.ts +++ b/lib/modules/manager/poetry/artifacts.ts @@ -95,7 +95,7 @@ export function getPoetryRequirement( function getPoetrySources(content: string, fileName: string): PoetrySource[] { let pyprojectFile: PoetryFile; try { - pyprojectFile = parseToml(content) as PoetryFile; + pyprojectFile = parseToml(content, { removeTemplates: true }) as PoetryFile; } catch (err) { logger.debug({ err }, 'Error parsing pyproject.toml file'); return [];