-
Notifications
You must be signed in to change notification settings - Fork 12
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
use project_slug
for project.name
?
#54
Comments
I have a small bias toward being consistent between the two to reduce potential confusion for beginners. |
I normally do it the same as you @sneakers-the-rat, but something gave me the impression that pyOS prefers underscores. I can't recall what gave me that impression, though. |
This is totally valid. Maybe we punt on this until the parameters settle down a bit and then we can make a more hierarchical parameter journey - "do you want to set pedantic and obsessive (complimentary) name settings (y/N)"
i only started appreciating hyphens in names once i started playing in javascript world, so makes sense to me as a python language vibe. ah the linguistic ecology of ... non-whitespace whitespace symbols |
i lean towards @blink1073 comment above. For beginners, it will be easy to forget where underscore vs hyphen should be. So I always name both the same. So i do suggest leaving this as is (but will test it again as I haven't played with this in a while. |
I tend to name my projects with hyphens and the packages with underscores, like
I don't think we should add another option, but it was surprising to me that the
name
entry in thepyproject.toml
file also used the underscore name. what do we think about using theproject_slug
in that spot (which replaces whitespace with hyphens) instead? not sure if that confuses the semantics of the config options too much, and we would want to put that in the help string.not a huge deal, and i could of course have continued through the prompts to enter it myself, but i really like the shortcut mode y'all have set up, and something where i can just enter "{project_name} is any old string" and it cascades down into "{something}-is-at-least-hyphenated" -> "{package_name}_is_a_valid_python_name" would b lovely
The text was updated successfully, but these errors were encountered: