-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Templated docstring should follow PEP257 conventions. #130
Comments
This isn't consistent, you are correct. However, there isn't really a good solution I've been able to think of. The main problem here is the Cookiecutter has no idea what will be put in the module name or description, so we can't really make any predictive forecast of what should go where. In theory, we can put the Under this assumption though, there should be a blank line between the two auto-populated things. That said, implicit in all of the cookiecutter is the notion of the user replacing text which is auto filled in. For instance, I don't think anyone would want to ever keep the |
Yes, in my experience, https://github.com/kassonlab/sample_restraint has resulted in people with repositories named I would recommend making separate "short description" (required) and "long description" (optional) CookieCutter parameters (consistent with normal Python packaging metadata). Then you could use these for the first and third line. A middle ground could be to add "short description of " to the beginning of the first line. And the line break. |
See PR #132
See PR #131 |
The templated docstring is not consistent with PEP257:
cookiecutter-cms/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/{{cookiecutter.first_module_name}}.py
Line 2 in fb218d0
If this is intentional (such as for the workshop participant to correct during an exercise), maybe this could be clarified or made static instead of using the template.
Otherwise:
pydoc
orhelp()
. This could mean just removing themolecool\n
first line.The text was updated successfully, but these errors were encountered: