Support for Jinja in .toml
files
#33105
jiaweikho
started this conversation in
Suggest an Idea
Replies: 1 comment 1 reply
-
Here is the related code for YAML: Lines 143 to 154 in 0552d98 You're welcome to submit a PR implementing similar for toml parsing. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Tell us more.
I've got a copier template with a
pyproject.toml.jinja
file that is used to generate apyproject.toml
file using the Jinja template file format. Can we support jinja templates oftoml
files? I have managed to extendfileMatch
forpoetry
to discover thepyproject.toml.jinja
file with:During the renovate workflow, I get the following log message:
I believe the issue is that the jinja delimiters {% %} causes errors when parsing the toml file. The dependency block looks something like:
I think this is similar to #18470 where the solution was implemented in #26682 to remove jinja blocks in
.yaml
files that match the regex. Is it possible to implement something similar fortoml
files?Beta Was this translation helpful? Give feedback.
All reactions