-
-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
venv_backend
new options and choices (#316)
* New global option `nox.options.venv_backend` to set the default backend. Fixes #315 * Added doc about the new option * Blackened * fixed tests * Fixed docs * Fixed coverage by adding tests for the venv_backend_completer * fixed test * Added tests for short and long versions of the new option. * Replaced the venv_backend completer with a simple `choices` from argparse :) * Renamed venv_backend to default_venv_backend, and created new force_venv_backend * New "none" choice for venv_backends, equivalent to python=False * Updated doc concerning default_venv_backend and force_venv_backend, as well as the new 'none' backend * Fixed all manifest tests * Fixed test_tasks for venv_backend * Fixed coverage * Blackened code * The warning message was appearing for all sessions, even those deselected. It is now only logged when session is run. * Added `--no-venv` option. Fixes #301 * Blackened * Fixed tests * Improved coverage * Blackened * Fixed an issue with parametrization: warning would not be issued. Added corresponding tests. This should make coverage happy, too. * Blackened * Now `install` and `conda_install` work when there is no venv backend (or python=False). Previously a `ValueError` was raised. Fixes #318 * Fixed test * Minor edit to trigger CI build again as it seems stuck. * Minor doc fix to trigger the CI again (appveyor false fail) Co-authored-by: Sylvain MARIE <sylvain.marie@se.com>
- Loading branch information
Showing
13 changed files
with
339 additions
and
49 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import nox | ||
|
||
|
||
@nox.session(python=["3.6"]) | ||
@nox.parametrize("cheese", ["cheddar", "jack", "brie"]) | ||
def snack(unused_session, cheese): | ||
print("Noms, {} so good!".format(cheese)) |
Oops, something went wrong.