From b5db5ab80e5d4635f56034a4a9cd6fa0e95e46ae Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Thu, 26 Nov 2026 13:41:49 +0100 Subject: [PATCH] Set the nox options `reuse_venv` and `stop_on_first_error` Start with fresh virtual environments explicitly, and stop at the first failing session. --- noxfile.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/noxfile.py b/noxfile.py index 8d68deb..0d228df 100644 --- a/noxfile.py +++ b/noxfile.py @@ -124,6 +124,13 @@ nox.options.envdir = '.cache/nox' # => Avoid accidental successes if the environment is not set up properly 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. nox.options.sessions = ( 'format',