Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nox session picker #140

Open
MicaelJarniac opened this issue Jun 21, 2023 · 0 comments
Open

Nox session picker #140

MicaelJarniac opened this issue Jun 21, 2023 · 0 comments
Assignees
Labels
automation Automations configuration Tools configuration enhancement New feature or request tools Tools to lint, format, test, and more

Comments

@MicaelJarniac
Copy link
Owner

# https://github.com/python-jsonschema/referencing/blob/c1a9ce8693d67b7b79a691e1bd0c4df1b73f617f/noxfile.py#L11-L20
import nox

nox.options.sessions = []

def session(default=True, **kwargs):
    def _session(fn):
        if default:
            nox.options.sessions.append(kwargs.get("name", fn.__name__))
        return nox.session(**kwargs)(fn)
    return _session
@MicaelJarniac MicaelJarniac added enhancement New feature or request tools Tools to lint, format, test, and more automation Automations configuration Tools configuration labels Jun 21, 2023
@MicaelJarniac MicaelJarniac self-assigned this Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation Automations configuration Tools configuration enhancement New feature or request tools Tools to lint, format, test, and more
Projects
None yet
Development

No branches or pull requests

1 participant