Skip to content

Update to new Nox #1736

@theacodes

Description

@theacodes

Nox recently made a big change from declarative to imperative and broke the Noxfile API.

We need to update our Noxfiles to work with the new API and update our test scripts to install nox (instead of nox-automation) and invoke python3 -m nox {args}.

Most projects just need to do a few steps:

  1. Remove usage of session_{name} sessions and use @nox.session instead.
  2. Don't use session.interpreter, use @nox.session(py='...')
  3. Don't use nox.parametrize for multiple Pythons, use @nox.session(py=['..', '..']).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions