We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f38e76 commit 4427cf3Copy full SHA for 4427cf3
doc/user_guide/usage/output.rst
@@ -21,6 +21,19 @@ a colorized report to stdout at the same time:
21
22
--output-format=json:somefile.json,colorized
23
24
+Environment Variables
25
+''''''''''''''''''''''''''''
26
+The colorization of the output can also be controlled through environment
27
+variables. The precedence for determining output format is as follows:
28
+
29
+1. ``NO_COLOR``
30
+2. ``FORCE_COLOR``, or ``PY_COLORS``
31
+3. ``--output-format=...``
32
33
+Setting ``NO_COLOR`` (to any value) will disable colorized output, while
34
+``FORCE_COLOR`` or ``PY_COLORS`` (to any value) will enable it, overriding
35
+the ``--output-format`` option if specified.
36
37
38
Custom message formats
39
''''''''''''''''''''''
0 commit comments