Flexible test automation.
Project description
Nox
Flexible test automation with Python
-
Documentation: https://nox.readthedocs.io
-
Source Code: https://github.com/wntrblm/nox
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nox-2024.10.9.tar.gz
.
File metadata
- Download URL: nox-2024.10.9.tar.gz
- Upload date:
- Size: 4.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7aa9dc8d1c27e9f45ab046ffd1c3b2c4f7c91755304769df231308849ebded95 |
|
MD5 | 35a95f8b0f8e04255d65387dfc331db5 |
|
BLAKE2b-256 | 08934df547afcd56e0b2bbaa99bc2637deb218a01802ed62d80f763189be802c |
File details
Details for the file nox-2024.10.9-py3-none-any.whl
.
File metadata
- Download URL: nox-2024.10.9-py3-none-any.whl
- Upload date:
- Size: 61.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d36f309a0a2a853e9bccb76bbef6bb118ba92fa92674d15604ca99adeb29eab |
|
MD5 | 91f3bb0675fa2f66c5d09b6c9cfd0a6a |
|
BLAKE2b-256 | 6600981f0dcaddf111b6caf6e03d7f7f01b07fd4af117316a7eb1c22039d9e37 |