diff --git a/docs/usage.rst b/docs/usage.rst index 43e9795e..5b51d318 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -329,7 +329,8 @@ Controlling color output By default, Nox will output colorful logs if you're using in an interactive terminal. However, if you are redirecting ``stderr`` to a file or otherwise not using an interactive terminal, or the environment variable ``NO_COLOR`` is -set, nox will output in plaintext. +set, nox will output in plaintext. If this is not set, and ``FORCE_COLOR`` is +present, color will be forced. You can manually control Nox's output using the ``--nocolor`` and ``--forcecolor`` flags. diff --git a/nox/_options.py b/nox/_options.py index 353ed647..6b6bfef0 100644 --- a/nox/_options.py +++ b/nox/_options.py @@ -463,7 +463,7 @@ def _session_completer( "--forcecolor", "--force-color", group=options.groups["reporting"], - default=False, + default=lambda: "FORCE_COLOR" in os.environ, action="store_true", help="Force color output, even if stdout is not an interactive terminal.", ),