Add a dev dependency group to get test dependencies installed by default. - #1219
Open
tapetersen wants to merge 1 commit into
Open
Add a dev dependency group to get test dependencies installed by default.#1219tapetersen wants to merge 1 commit into
dev dependency group to get test dependencies installed by default.#1219tapetersen wants to merge 1 commit into
Conversation
…lled by default. ``uv`` and some other tools install the dependency-group ``dev`` by default when working locally on the package. This allows running ``uv run pytest`` or other tools without having to manually add ``--group test``
tapetersen
commented
Jul 14, 2026
Comment on lines
+50
to
+54
| "trio>=0.32.0", | ||
| "tox >= 4.22", | ||
| "pre-commit>=4.6.0", | ||
| {include-group = "test"}, | ||
| {include-group = "doc"}, |
Collaborator
Author
There was a problem hiding this comment.
It's mainly including test (and to some degree trio) here that has the most benefit here.
To be able to use uv run -p 3.11 pytest ... for example to quickly check in different version without needing to add --group test --extra trio as well on every invocation.
Owner
There was a problem hiding this comment.
You can already do that with tox -e py311.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
uvand some other tools install the dependency-groupdevby default when working locally on the package. This allows runninguv run pytestor andtoxorpre-commitby default without externally adding them.This adds a dependency-group named
devtopyproject.tomlwhich includes thetestanddocgroup as well astoxandpre-committo get these installed by default when checking out to work on the project.This shouldn't impact downstream users but mainly make it more convenient for developers to get started running necessary tests.
Checklist
I'm a bit unsure which docs if any I should update or if developer only changes should be included in changelog.
docs/), in case of behavior changes or newfeatures
docs/versionhistory.rst).Updating the changelog