-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Add a default session list #40
Comments
My suggestion is to actually make whether or not a session is a "default" session be part of session registration, e.g. @nox.session(run_by_default=False)
def peekaboo(session):
... This has a few limitations:
|
I could go either way on this, but just noting that pytest's parametrize has # content of test_expectation.py
import pytest
@pytest.mark.parametrize("test_input,expected", [
("3+5", 8),
("2+4", 6),
pytest.param("6*9", 42,
marks=pytest.mark.xfail),
])
def test_eval(test_input, expected):
assert eval(test_input) == expected If we want to go down the route that @lukesneeringer is suggesting we could do: @nox.session
@nox.parametrize('foo, bar', [
(1, 2),
nox.param(3, 4, run_by_default=False)
]) |
If we did that, would the entire kaboodle be an initial requirement, or just the more general case? |
I'd strongly prefer a full solution over a partial one.
It's also perhaps useful to just adopt pytest's marks. We could just have
@nox.mark.default - if any thing is marked as default then running `nox`
alone will only run those sessions, if nothing is marked as default then
all sessions are run.
…On Wed, Aug 30, 2017 at 2:13 PM Luke Sneeringer ***@***.***> wrote:
If we did that, would the entire kaboodle be an initial requirement, or
just the more general case?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#40 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAPUc6wNjoAYHaDkitGJArzXyGA7YWQQks5sddBkgaJpZM4PH8RN>
.
|
I could get behind Should we change to |
Eh, I'd be okay with just |
Agreed. I don't think nox needs a complete mark namespace. |
I would love to have an env variable for this, tox has |
@stsewd that would be much easier to do than this proposal, and could be done independently. |
I'm going to take a stab at implementing this, just signaling to anyone else if it's already in progress. |
Closing this in favor of #141, let's move the discussion there. |
Invoking
nox
with no command line arguments runs every session. It would be useful if the nox.py could specify a default list of sessions to run in that case, for exampleThe text was updated successfully, but these errors were encountered: