pypi / nox
nox
What changed in nox 2025 to 2026, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
13 breaking1 deprecations10 new APIs and options4 performance18 behavior and defaults3 tooling27 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initnox 202659 changes
Breaking changes 12
A dependency's mandatory requirements are now traversed even when it has no extras.
The GitHub Action now defaults to Python 3.11-3.15.
Conversion drops environment variables that tox 4.64.8 and later list in set_env.
Unrecognized global options now produce an error.
Script mode is isolated from an inherited PYTHONPATH.
Provisioning with uv no longer writes ~/.local/bin shims.
Python 3.15 requires virtualenv 21 or later.
The option is enforced even when log=False.
load_toml returns an empty dict when the script file is missing.
Python 3.9 support was dropped.
Fully non-ASCII session names are hashed instead of returning the envdir.
Python 3.8 support is dropped, affecting which Python versions developers can use with nox.
New APIs and options 6
A new backend uses py-rattler to provide fast conda-style environments in a
/// scriptblock; install it with thenox[rattler]extra.Sessions expose whether they are running in a parallel worker.
Sessions can run in parallel experimentally; sessions must opt in, or use --allow-parallel.
Python ranges with only an upper bound can be downloaded.
The CommandFailed exception now exposes a return_code property.
Adds a command to print full docstrings for provided sessions.
Performance 4
Interpreter discovery results are cached.
Metadata reads are cached.
Session-name normalization is cached.
uv detection results are cached.
Behavior and default changes 12
Options that accept lists now also accept tuples.
Single-argument parametrization now accepts ranges and other iterators.
The parallel banner and status header now fall back to ASCII.
Running with --parallel no longer prints an experimental banner.
The rattler backend now loads configuration from the default locations.
Explicit command-line options take precedence over noxfile and alias values.
Interpreter discovery now uses python-discovery, which should find Python better and supports version specifier sets.
PEP 440 range interpreters are translated to conda version specs.
Script mode reads requires-python to determine Python requirements.
Modules are imported lazily on Python 3.15.
The -t option now selects from all available sessions.
Support for using multiple session decorators was improved.
Tooling 3
Environment variables are shown in CLI help.
The .nox directory is ignored by default, with .gitignore and CACHEDIR.TAG written to it.
Typing for .run was improved.
Fixes and other changes 22
External command classification now respects directory boundaries.
Script mode no longer calls install() when a script declares no dependencies.
Python versions read from classifiers now include free-threaded builds when the free-threading classifier is present.
Script metadata is now read when the file starts with a UTF-8 BOM.
Duplicate Python versions are removed from a session's Python list.
Command conversion now preserves quoted paths.
The parallel reporter now supports legacy encodings, improving parallel-mode support on legacy Windows.
Python versions derived from classifiers are sorted.
Conda version constraints on Windows are corrected.
An empty inner @parametrize is retained when decorators are stacked.
Building the manifest no longer crashes when a python-matrix session has an empty parametrize.
The minimum version is corrected for major-only and multiple lower bounds.
python_versions() no longer crashes when max_version is major-only.
The fallback for --download-python is fixed.
Interpreter-resolution edge cases are fixed.
Nox no longer crashes when a parametrized session has an empty parameter list.
Script-mode pip resolution on Windows is fixed.
Missing parent directories for the session cache directory are created.
The converter now handles
=in set_env values and out-of-tree change_dir.Virtual environments are recreated when broken symlinks are present, such as after a Python upgrade.
Nox supports uv 0.10's requirement to pass --clear when clearing an environment.
Python 3.8 support was temporarily re-added because uv 0.10 still supports 3.8.
nox 202517 changes
Breaking changes 1
Nox no longer accepts abbreviated options.
Deprecations 1
Shows a warning when a duplicate session is encountered, with an eventual error planned.
New APIs and options 4
Adds a Python option to control whether nox downloads Python, even when not using uv.
Adds support for GitHub Actions Windows ARM runners.
Supports scripts with custom names in script mode.
Adds
session.env_dirto get the Path to the environment.
Behavior and default changes 6
The --report option now supports a Path as its file argument.
The dependency is now optional; it is only needed to install Python when not using the uv backend.
Runs taking over a second now include the time taken in the output.
Updates the GitHub Action default to target the recommended Python range 3.10–3.14.
Uses a separate
SESSION_INFOlogging level for session info instead of warning.Percolates the global
verboseoption to thesilentargument for session installation commands.
Fixes and other changes 5
Avoids warnings when running in script mode.
Logs the output of a failed process.
Correctly matches free-threaded Python versions.
Fixes a validation error for
nox.options.keywords.Tightens the type for
venv_backend.