Skip to content

Expose test dependencies outside of noxfile.py #601

@brettcannon

Description

@brettcannon

Right now the only way to run the tests outside of running nox -s tests is to manually install what's hard-coded there:

session.install("coverage[toml]>=5.0.0", "pretend", "pytest>=6.2.0", "pip>=9.0.2")

This is problematic if you want to set up your editor for running your tests before you take the next step with nox to run the tests on all installed versions of Python.

We could create a test optional dependency so that we can change:

session.install(".")

to be .[test]. And I'm specifically suggesting test over tests because that's what the core metadata chose as a name.

We could also do this for documentation with a doc extra.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions