Join the Kedro community

Updated 2 months ago

Ignoring certain files

At a glance

Hi all,

My team creates kedro starters using cookie cutter templates. Some of our files have .jinja like syntax e.g. {{ some code here }} that isn't actually jinja. Is there a way to have kedro ignore certain files when running kedro new on the template so that it doesn't try to .jinja render them?

d
M
4 comments

I’m on my phone so can’t find an example, but we pass the arguments to cookie cutter directly and you need to provide options to this:

https://cookiecutter.readthedocs.io/en/stable/advanced/copy_without_render.html#copy-without-render

Essentially filepaths provided her will just be treated as text so you don’t double jinja

This is exactly what I needed, especially for a question I didn't think I specified clearly

my pleasure - been there before

Add a reply
Sign up and join the conversation on Slack