Skip to content
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

The test environment should auto-install the test feature if present #1553

Open
henryiii opened this issue Jun 5, 2024 · 1 comment
Open

Comments

@henryiii
Copy link
Contributor

henryiii commented Jun 5, 2024

The test feature is a reserved name for testing dependencies, per https://packaging.python.org/en/latest/specifications/core-metadata/#provides-extra-multiple-use. It would be nice if a package declaring a public test extra could skip this:

[tool.hatch.envs.hatch-test]
features = [ "test" ]

The idea is that this would auto-default to [ "test" ] if there's a test extra. If this field was specified (even to an empty list), that would still take precedence.

I think this would fit well in having a nice "out of the box" experience.

The same would go for doc or docs with documentation. The standard currently states doc but docs is 3x more popular in practice.

@ofek
Copy link
Collaborator

ofek commented Jun 5, 2024

This will be in the next minor release, thanks for the suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants