Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,10 @@ Tests are automatically setup to run on GitHub when you push changes to your rep

You may also run your tests locally with [pytest](https://docs.pytest.org/en/7.1.x/).
You'll need to make sure that your package is installed in your environment,
along with testing requirements (specified in the pyproject.toml `project.optional-dependencies` section):
along with testing requirements (specified in the pyproject.toml `[dependency-groups]` section):

```bash
pip install -e ".[testing]"
pip install -e ". --dependency-groups=testing"
pytest
```

Expand Down
2 changes: 2 additions & 0 deletions template/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ dependencies = [
# Allow easily installation with the full, default napari installation
# (including Qt backend) using {{plugin_name}}[all].
all = ["napari[all]"]

[dependency-groups]
testing = [
"tox",
"pytest", # https://docs.pytest.org/en/latest/contents.html
Expand Down
2 changes: 1 addition & 1 deletion template/tox.ini.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ passenv =
XAUTHORITY
NUMPY_EXPERIMENTAL_ARRAY_FUNCTION
PYVISTA_OFF_SCREEN
extras =
dependency_groups =
testing
commands = pytest -v --color=yes --cov={{module_name}} --cov-report=xml
Loading