You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently nox does not notify the user of what packages were installed by pip on the use of session.install() syntax. It is possible to do so by using the --verbose command-line flag. There is #666 that is (somewhat) related. Adding a way to make nox session arguments verbose by default would help evade the use of --verbose and therefore display verbose output by default.
For example
@nox.session(name="tests")defrun_tests(session):
"""Run the unit tests."""session.install("-e", ".[test]")
session.run("pytest")
can be called with
nox -s tests --verbose
to display pip's installation output when invoking a nox session. However, this use-case is not limited to just this, and displaying verbose outputs at the time of virtual environment creation can also help for debugging purposes.
Describe the solution you'd like
It would be great to have an option in this form
# perhaps kept False by defaultnox.options.verbose=True
which can then apply to all sessions invoked inside a noxfile. If verbosity is not required for a particular session, it can be overridden for said session by @nox.session(verbose=False) which takes precedence over nox.options.
Another solution is to just make pip display complete output in all cases (tox environments have always done this, with or without a verbose command-line flag or option).
as an alias to session.install(), which for users means that
conda or pip inside this command has to be specified explicitly which
This will make it run even in the presence of --no-install, which does not help in the case where speedups are required (not that pip output is required anyway when not installing prerequisites or other dependencies).
There is also session.install(silent=False) which is a nice way and already resolves this issue; however, it would be great it there could be a way to let it be so for all session.install() commands on a per-noxfile or per-session basis.
Anything else?
N/A
The text was updated successfully, but these errors were encountered:
How would this feature be useful?
Currently
nox
does not notify the user of what packages were installed bypip
on the use ofsession.install()
syntax. It is possible to do so by using the--verbose
command-line flag. There is #666 that is (somewhat) related. Adding a way to make nox session arguments verbose by default would help evade the use of--verbose
and therefore display verbose output by default.For example
can be called with
to display
pip
's installation output when invoking anox
session. However, this use-case is not limited to just this, and displaying verbose outputs at the time of virtual environment creation can also help for debugging purposes.Describe the solution you'd like
It would be great to have an option in this form
which can then apply to all sessions invoked inside a
noxfile
. If verbosity is not required for a particular session, it can be overridden for said session by@nox.session(verbose=False)
which takes precedence overnox.options
.Another solution is to just make
pip
display complete output in all cases (tox
environments have always done this, with or without a verbose command-line flag or option).Describe alternatives you've considered
The current workaround for this is to use
as an alias to
session.install()
, which for users means thatconda
orpip
inside this command has to be specified explicitly which--no-install
, which does not help in the case where speedups are required (not thatpip
output is required anyway when not installing prerequisites or other dependencies).There is also
session.install(silent=False)
which is a nice way and already resolves this issue; however, it would be great it there could be a way to let it be so for allsession.install()
commands on a per-noxfile or per-session basis.Anything else?
N/A
The text was updated successfully, but these errors were encountered: