Skip to main content

Nox sessions with options

Project description

NoxOpt

Nox sessions with options!

Usage

Define a session with typed parameters:

from noxopt import NoxOpt, Session

nox = NoxOpt()

@nox.session
def my_session(session: Session, some_option: int):
    session.echo(some_option)

Now you can pass this session the declared option via the command line:

nox -s my-session -- --some-option 10

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

noxopt-0.0.2.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

noxopt-0.0.2-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

Supported by

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