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

pyproject.toml missing hatch matrix definition #338

Open
jeskowagner opened this issue Nov 26, 2024 · 0 comments
Open

pyproject.toml missing hatch matrix definition #338

jeskowagner opened this issue Nov 26, 2024 · 0 comments

Comments

@jeskowagner
Copy link

Hi,
I think that pyproject.toml could benefit from the addition of a hatch matrix definition, such as:

[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.10", "3.11", "3.12"]
features = ["test"]

At least for me, running tests locally with hatch test fails without this addition, because hatch considers my active Python version to be compatible and doesn't launch into a testing environment but just uses my local environment. In fact, I am not sure these two lines have any effect while testing. In the docs they use the matrix definition, although for granular dependency management they do seem to use tool.hatch.envs.hatch-test (i.e. not matrix) (see here).

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

1 participant