Skip to content

use project_slug for project.name? #54

@sneakers-the-rat

Description

@sneakers-the-rat

I tend to name my projects with hyphens and the packages with underscores, like

[project]
name = 'my-package'
src
|- my_package
  |- __init__.py

I don't think we should add another option, but it was surprising to me that the name entry in the pyproject.toml file also used the underscore name. what do we think about using the project_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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions