Skip to main content

Flexible test automation.

Project description

logo

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-2022.8.7.tar.gz (72.0 kB view details)

Uploaded Source

Built Distribution

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

nox-2022.8.7-py3-none-any.whl (53.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nox-2022.8.7.tar.gz
  • Upload date:
  • Size: 72.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for nox-2022.8.7.tar.gz
Algorithm Hash digest
SHA256 1b894940551dc5c389f9271d197ca5d655d40bdc6ccf93ed6880e4042760a34b
MD5 5ac69b56e7fa4ebfeba3f8c2d3981205
BLAKE2b-256 12f1a810cf1f56e47b990824ebbb19e789745e4d1ea80ac0f2b6494c50e3f6a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nox-2022.8.7-py3-none-any.whl
  • Upload date:
  • Size: 53.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for nox-2022.8.7-py3-none-any.whl
Algorithm Hash digest
SHA256 96cca88779e08282a699d672258ec01eb7c792d35bbbf538c723172bce23212c
MD5 5390fd8e80c2df9a339d2c83552d609b
BLAKE2b-256 822778ae03d62f352441addb566f4b03b0919d2d5acc489ea87ce66c34169d91

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