Poetry Manager throws Schema error on non-Poetry pyproject.toml #36317
Replies: 4 comments 9 replies
-
|
I think we should avoid the user needing to configure things in such cases. A few possibilities:
|
Beta Was this translation helpful? Give feedback.
-
|
Adding some info from ChatGPT o4-mini-high about whether developers should always commit their poetry.lock: In short, it depends on what kind of project you’re maintaining:
When to commit
|
Beta Was this translation helpful? Give feedback.
-
|
From the
|
Beta Was this translation helpful? Give feedback.
-
|
Then the condition should parse first whether The current behaviour/schema simply assumes the IMO the safest sure way is to still check for a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How are you running Renovate?
Self-hosted Renovate
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
Gitlab
Please tell us more about your question or problem
Likely a bug: when Renovate encounters a
pyproject.tomlfile that is not a Poetry-managed project (e.g., it's a PEP 621 project, or managed by another tool like pixi), the poetry manager attempts to parse it and throws a Schema error. Specifically:"issues": {"tool": "Required"}Which makes sense if the
pyproject.tomlfile lacks a[tool.poetry]section -- since the renovate schema expects it: https://github.com/renovatebot/renovate/blob/main/lib/modules/manager/poetry/schema.ts#L344Attempts to disable the manager in
packageRuleshave failed:because renovate managers parse the repository before evaluating the packageRules.
An alternative would be to allow specific managers via the
enabledManagersconfig. But as far as I can tell this is a somewhat global setting, there's no way to do this only for specific repositories.Fix: An easier fix I can think of is an extra condition to just check whether the repository with the
pyproject.tomlfile also has apoetry.lockfile. If anyone can point me to, I can submit a fix. Thanks.Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions