Skip to main content

Flexible test automation.

Project description

logo

Nox

Nox License PyPI GitHub Code Style CI Downloads

Flexible test automation with Python

Overview

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


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

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

Installation

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

Usage

List all sessions

nox -l/--list

Run all sessions

nox

Run a particular session

nox -s/--session test

Checkout the docs for more! 🎉

Contributing

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file nox-2024.4.15.tar.gz.

File metadata

  • Download URL: nox-2024.4.15.tar.gz
  • Upload date:
  • Size: 4.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for nox-2024.4.15.tar.gz
Algorithm Hash digest
SHA256 ecf6700199cdfa9e5ea0a41ff5e6ef4641d09508eda6edb89d9987864115817f
MD5 8b11253b6c10c125cf40a535b2a4ebee
BLAKE2b-256 1e86b86fc26784d2f63d038b4efc9e18d4d807ec025569da66c6d032b8f717df

See more details on using hashes here.

File details

Details for the file nox-2024.4.15-py3-none-any.whl.

File metadata

  • Download URL: nox-2024.4.15-py3-none-any.whl
  • Upload date:
  • Size: 60.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for nox-2024.4.15-py3-none-any.whl
Algorithm Hash digest
SHA256 6492236efa15a460ecb98e7b67562a28b70da006ab0be164e8821177577c0565
MD5 9c28eecf3c128c73b81c3baecc1b2f4d
BLAKE2b-256 a4282897c06b54cd99f41ca9e5cc7433211a085903a71aaed1cb1a1dc138d53c

See more details on using hashes here.

Supported by

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