Closed apirogov closed 10 months ago
.cookiecutterrc
, if availablefair-python-cookiecutter
sectionpydantic
+ pydantic_yaml
(with extra = allow on top level)cookiecutter.json
cookiecutter
is used to render the adjusted templateplatformdirs
instead of tempfile
to get a suitable location!)In the course of implementing this, also it should be reconsidered how:
There are many desired configurations for the template, such as
Creating forks of this repository seems to be a recipe for maintainability nightmare, while working with the tricks possible in a "plain" cookiecutter repo is reaching its limits (too much conditional rendering turns it into a mess).
The solution is to use cookiecutter as a library and add some custom wrapping code for orchestrating it. Most users probably won't have
cookiecutter
on their system, so it does not matter much if they need topip install
cookiecutter, or a custom CLI tool of this repository. The upside would be much more flexibility and potential for customizing the template for each user.This would simplify taking care of certain differences between Github and Gitlab (i.e. help with #15).