Skip to main content

Flexible test automation.

Project description



Nox License PyPI GitHub Code Style CI Downloads

Flexible test automation with Python


nox is a command-line tool that automates testing in multiple Python environments, similar to tox. Unlike tox, Nox uses a standard Python file for configuration:

import nox

def tests(session: nox.Session) -> None:

def lint(session: nox.Session) -> None:
    session.install("flake8")"flake8", "--import-order-style", "google")


Nox is designed to be installed globally (not in a project virtual environment), the recommended way of doing this is via pipx, a tool designed to install python CLI programs whilst keeping them separate from your global or system python.

To install Nox with pipx:

pipx install nox

You can also use pip in your global python:

python3 -m pip install nox

You may want to user the user-site to avoid messing with your Global python install:

python3 -m pip install --user nox


List all sessions

nox -l/--list

Run all sessions


Run a particular session

nox -s/--session test

Checkout the docs for more! 🎉


Nox is an open source project and welcomes contributions of all kinds, checkout the contributing guide for help on how to help us out!

All contributors must follow the code of conduct and be nice to one another! 😃

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nox-2024.4.15.tar.gz (4.0 MB view hashes)

Uploaded Source

Built Distribution

nox-2024.4.15-py3-none-any.whl (60.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page