skillfed

nox

Flexible test automation.

nox v2026.8.10 6.3M downloads/30d#1,936 on PyPI1,551
Permissive license Apache-2.0 Active released

What it is and what it does

Nox is a command-line test automation tool that runs tests and other development tasks in isolated Python environments. Unlike configuration-driven tools, it uses standard Python files to define sessions—functions decorated with @nox.session that install dependencies and run commands in separate virtual environments. Each session runs in its own isolated context, making it straightforward to test against multiple Python versions, run linting and type checking, or execute any other repeatable task without environment pollution.

The package is designed to be installed globally (typically via pipx) rather than per-project, and it manages virtualenv creation and teardown automatically. It depends on ten runtime packages including virtualenv, packaging, and colorlog, all of which are mature and widely used. The tool supports modern Python versions from 3.10 through 3.15, and its active maintenance status and recent release cycle indicate ongoing support.

Use it for:

  • Run test suites against multiple Python versions in a single command to verify compatibility.
  • Define and execute linting, type checking, and formatting tasks as separate reproducible sessions.
  • Automate CI/CD pipelines that need isolated, repeatable environments without manual setup.
  • Manage complex test workflows (unit tests, integration tests, coverage reporting) as named sessions.
  • Replace tox configurations with Python-based session definitions for better IDE integration and flexibility.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Nox automates testing across multiple Python environments using Python configuration files instead of INI-style config, creating isolated sessions for tests, linting, and other development tasks.

Yes. Nox is a production-stable, actively maintained tool with low install friction and no known vulnerabilities. It solves a real problem—multi-environment test automation—with a cleaner, more Pythonic approach than its predecessors. The permissive Apache-2.0 license and broad Python version support (3.10–3.15) make it suitable for most projects. Install it globally via pipx and use it in any project that needs to test across environments or automate repetitive development tasks.

Install

nox on PyPI

pip

pip install nox

uv

uv add nox

poetry

poetry add nox

Installing nox

Before you install

Low friction install as a standalone CLI tool. Active maintenance with a recent release (4 days old) and steady repository activity. Ten runtime dependencies are all well-established packages, suggesting stable integration.

License in practice

Apache-2.0 permissive license allows use in commercial and proprietary projects with minimal restrictions; you must include a copy of the license and notice of modifications if you distribute the package.

Quickstart

pip install nox

# Create noxfile.py:
import nox

@nox.session
def tests(session: nox.Session) -> None:
    session.install("pytest")
    session.run("pytest")

# Run:
nox

Requires Python 3.10 or later; designed for global installation (via pipx recommended) rather than per-project virtual environments.

Verify before relying

  • Whether the package's test coverage and reliability metrics meet production standards for CI/CD pipelines.
  • Performance characteristics when managing many sessions or large dependency trees.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 10 — argcomplete, attrs, colorlog, dependency-groups, humanize, packaging, platformdirs, python-discovery, tomli, virtualenv
Maintenance actively maintained — 4 days since the last release
Last repo commit
First released
Downloads 6,297,471/month — #1,936 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: nox-2026.8.10-py3-none-any.whl

Keywords: automation, testing, tox

Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIXOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Topic :: Software Development :: Testing

Tags

multi-environment test automationpython testing across versionssession-based test runnerisolated test environmentspython test orchestrationtox alternativeautomated testing framework
test-automationci-cdmulti-environment

More Testing packages