Skip to content

Commit 43c84c7

Browse files
Document MYPY_FORCE_COLOR and FORCE_COLOR in --help
Partially resolves #13815. Only partially because the rst documentation should also mention this, which I haven't done yet because the natural home for that mention is in a page that we haven't created yet (imo). This commit also does not test this feature.
1 parent 19697af commit 43c84c7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mypy/main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,10 @@ def infer_python_executable(options: Options, special_opts: argparse.Namespace)
367367

368368
FOOTER: Final = """Environment variables:
369369
Define MYPYPATH for additional module search path entries.
370-
Define MYPY_CACHE_DIR to override configuration cache_dir path."""
370+
Define MYPY_CACHE_DIR to override configuration cache_dir path.
371+
Define MYPY_FORCE_COLOR (or, failing that, FORCE_COLOR) to a non-zero integer
372+
(or any non-empty non-integer string) to force mypy to output in color.
373+
"""
371374

372375

373376
class CapturableArgumentParser(argparse.ArgumentParser):

0 commit comments

Comments
 (0)