Skip to content

Commit d6addfc

Browse files
style: pre-commit fixes
1 parent 5bb5898 commit d6addfc

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

docs/_includes/pyproject.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,14 @@ work to call the app (`__name__` will be `"__main__"` in that case).
110110

111111
### Development dependencies
112112

113-
The proper way to specify dependencies exclusively used for devlopment tasks (such as `pytest`, `ruff`, packages for generating documentation, etc.) is to use dependency-groups.
114-
Dependency-groups are recommended over requirement files because they are formally standardized (i.e. they will be more portable going forward) and they are more composable.
115-
In contrast with extras, dependency-groups are not available when installing your package via PyPI, but they are available for local installation (and can be installed separately from your package); the `dev` group is even installed, by default, when using `uv`.
113+
The proper way to specify dependencies exclusively used for development tasks
114+
(such as `pytest`, `ruff`, packages for generating documentation, etc.) is to
115+
use dependency-groups. Dependency-groups are recommended over requirement files
116+
because they are formally standardized (i.e. they will be more portable going
117+
forward) and they are more composable. In contrast with extras,
118+
dependency-groups are not available when installing your package via PyPI, but
119+
they are available for local installation (and can be installed separately from
120+
your package); the `dev` group is even installed, by default, when using `uv`.
116121
Here is an example:
117122

118123
```toml
@@ -129,9 +134,9 @@ You can include one dependency group in another. Most tools allow you to install
129134
groups using `--group`, like `pip` (25.1+), `uv pip`, and the high level `uv`
130135
interface. It's possible to install a package's dependency group without
131136
installing the package itself, but usually you'll want to instruct your tool to
132-
install both (the high level `uv` interface does this automatically).
133-
Nox, Tox, and cibuildwheel all support groups, too. The `dependency-groups`
134-
package also provides tools to get the dependencies.
137+
install both (the high level `uv` interface does this automatically). Nox, Tox,
138+
and cibuildwheel all support groups, too. The `dependency-groups` package also
139+
provides tools to get the dependencies.
135140

136141
[metadata]: https://packaging.python.org/en/latest/specifications/core-metadata/
137142
[trove classifiers]: https://pypi.org/classifiers/

0 commit comments

Comments
 (0)