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:
Alexander Hess 2026-11-26 13:41:49 +01:00
commit b5db5ab80e
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -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',