• Stars
    star
    1,288
  • Rank 36,264 (Top 0.8 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created over 8 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Flexible test automation for Python

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

More Repositories

1

Castor_and_Pollux

A Juno-inspired dual oscillator
C
520
star
2

jellyfish-and-starfish

100
star
3

Gingerbread

Web-based tool for creating artistic PCBs
C++
97
star
4

Sol

An open-source MIDI-to-CV Eurorack module that runs CircuitPython
Python
70
star
5

wintertools

Python tools for managing and testing Winterbloom projects
Python
48
star
6

Big_Honking_Button

A simple Eurorack sampler and performance module in a silly package.
Python
48
star
7

Gingerbread.py

A set of Python tools to create decorative PCBs with KiCAD
Python
48
star
8

winterbloom_kicad_library

Common KiCAD symbols & footprints for Winterbloom projects
HTML
35
star
9

libwinter

Common C libraries for bare-metal ARM projects
C
28
star
10

Micronova

The tiny but mighty Eurorack power supply
22
star
11

Neptune

A salty diode ladder filter
Python
21
star
12

Winterbloom_SmolMIDI

Python
20
star
13

Hubble

Re-usable test jig controller
C
16
star
14

Hostess_FeatherWing

C
15
star
15

Speak_to_Me

A beautiful stereo headphone amplifier and a delightfully lo-fi speaker
14
star
16

Helium

Helium is a triple 1-to-3 precision buffered multiple and 3-to-1 precision adder
Python
10
star
17

winterjs

Common JavaScript used across Winterbloom's documentation
JavaScript
10
star
18

Winterbloom_VoltageIO

A CircuitPython helper library for dealing with voltage values in DACs and ADCs
Python
9
star
19

winterbloom_mkdocs_theme

Winterbloom-branded theme for MkDocs
JavaScript
7
star
20

fishfood

C
5
star
21

Winterbloom_AD_DACs

CircuitPython driver for the Analog Devices AD5689 and AD5686 16-bit DACs
Python
4
star
22

potracecffi

C
4
star
23

Hydrogen

A dual 1-to-4 precision buffered multiple
Python
3
star
24

openpnp-config

Python
2
star
25

coupling-constant

1
star