Closed bourdeet closed 8 months ago
I am trying to check that the new commits can run on install, but I realized that calling:
cookiecutter -f git@github.com:alexandrainst/alexandra-ml-template
This downloads the template from the main branch. @saattrupdan do you know if one can call a specific git branch from cookiecutter? I tried:
cookiecutter -f gh:alexandrainst/alexandra-ml-template@docstring_fix
cookiecutter -f git@github.com:alexandrainst/alexandra-ml-template@docstring_fix
cookiecutter -f gh:alexandrainst/alexandra-ml-template.git@docstring_fix
but it doesn't seem to work
I am trying to check that the new commits can run on install, but I realized that calling:
cookiecutter -f git@github.com:alexandrainst/alexandra-ml-template
This downloads the template from the main branch. @saattrupdan do you know if one can call a specific git branch from cookiecutter?
@bourdeet It seems like you can specify the branch name with the --checkout
argument, as described here:
$ cookiecutter -f git@github.com:alexandrainst/alexandra-ml-template --checkout docstring_fix
OK! the empty init.py files that caused the docstring issue were in the end not needed by the template, as they are created upon running make install
I have pushed the changes, and I can install a test project with both pip and poetry without any issue. Good to merge!
When deploying a new project and running
make install
, I encounter two errors.Example setup command:
Example configuration from the prompt:
First error upon running
make install
:The first error can be avoided by adding a dot to the name
pre-commit-config.yaml
. When running make install again, I get a second error related to docstring formatting of some of the template files:I have added the missing docstring in the problematic file.