Set the nox options reuse_venv and stop_on_first_error
Start with fresh virtual environments explicitly, and stop at the first failing session.
This commit is contained in:
parent
911107af95
commit
b5db5ab80e
1 changed files with 7 additions and 0 deletions
|
|
@ -124,6 +124,13 @@ nox.options.envdir = '.cache/nox'
|
||||||
# => Avoid accidental successes if the environment is not set up properly
|
# => Avoid accidental successes if the environment is not set up properly
|
||||||
nox.options.error_on_external_run = True
|
nox.options.error_on_external_run = True
|
||||||
|
|
||||||
|
# Always start with fresh virtual environments
|
||||||
|
# unless the "-r" or "-R" flags are passed in
|
||||||
|
nox.options.reuse_venv = 'no'
|
||||||
|
|
||||||
|
# Do not run further sessions once one fails
|
||||||
|
nox.options.stop_on_first_error = True
|
||||||
|
|
||||||
# Run only local checks by default.
|
# Run only local checks by default.
|
||||||
nox.options.sessions = (
|
nox.options.sessions = (
|
||||||
'format',
|
'format',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue