Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update Noxfiles to use new Nox #6170

Closed
Closed
@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

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions