You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Thea Flowers ccade46a20
Release 2022.8.7
7 days ago
.github chore(deps): bump pypa/gh-action-pypi-publish from 1.5.0 to 1.5.1 (#640) 2 weeks ago
docs feat: Add session tags (#627) 2 months ago
nox Add short -N alias for --no-reuse-existing-virtualenvs (#639) 1 week ago
tests Export session name in envvar NOX_CURRENT_SESSION (#641) 1 week ago
.gitignore chore: bump linting versions to latests (#528) 8 months ago
.pre-commit-config.yaml chore: use python 3.7+ syntax for action_helper.py (#633) 1 month ago
.readthedocs.yml Use the new ReadTheDocs configurations (#527) 8 months ago
CHANGELOG.md Release 2022.8.7 7 days ago
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 4 years ago
CONTRIBUTING.md Jazz up the README with some badges/logo etc. (#605) 3 months ago
LICENSE Initial commit 7 years ago
MANIFEST.in style: check manifest (#552) 8 months ago
README.md Use link for README alice logo (#614) 3 months ago
action.yml fix: invalid input in action's localpython step (#632) 1 month ago
noxfile.py feat: allow defining a python version list for GHA action (#609) 2 months ago
pyproject.toml Release 2022.8.7 7 days ago
requirements-conda-test.txt Support argcomplete v2 (#564) 7 months ago
requirements-dev.txt Create a `requirements-dev.txt` (#582) 6 months ago
requirements-test.txt tests: configure pytest (#597) 4 months ago
setup.cfg Support PEP 621 (#616) 3 months ago

README.md

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! 😃