Percolate the verbose global option to the silent argument for session installation commands, and document it#983
Merged
henryiii merged 6 commits intowntrblm:mainfrom Oct 8, 2025
Conversation
Contributor
Author
|
Thanks for triggering the CI! I've fixed the docs build. |
agriyakhetarpal
commented
Jun 13, 2025
Contributor
Author
|
I'm not sure what triggered the |
henryiii
approved these changes
Oct 8, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR documents the existing
nox.options.verboseoption and makesverbosea flag pair. Based on its value, it flips thesilentparameter forsession.install(<...>)andconda_install(<...>)to expose outputs to stdout/stderr.The standard rule for flag pairs applies (as I understand it): the
silentparameter if set takes precedence over the value ofnox.options.verbose, and the--verbose/--no-verboseCLI arguments will take precedence over both the values ofnox.options.verboseand ofsilentwhether set or not.Please let me know if this is not desirable; in that case, I can close this PR.
Thank you for your time!
Closes #741
Note
My original ask with the linked issue was to do both things: add a
nox.options.verboseoption to be able to specify that in a Noxfile, and also to not need to setsession.install(silent=False)for every command; i.e., also print the output of installation commands (i.e., in order to adhere to the "all output of all commands run is shown, regardless of the silent argument" sentence in the docs by including these installation commands as a part of all commands).It appears that since then, the
verboseoption has been added; however, the installation commands were not taking this option's value into account, and this PR only addresses this part.