-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Support for copier.yaml
files that include other files
#84
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really like this PR. Can you create a test to illustrate this feature ?
I added tests, but I'm not sure I matched the existing conventions well. Let me know if you have specific changes that you would like to see made. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
few cosmetic changes and it will be perfect
Changes made based on code review feedback.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perfect, thanks for your valuable contribution. I'll draft a release as it's a wanted feature!
copier configuration files can include other files (more info here).
This change adds support for those files by using
yaml.safe_load_all
to load the yaml content rather thanyaml.safe_load
. It also includes functionality to support!include
.