diff --git a/poethepoet/ui.py b/poethepoet/ui.py index 02acde53..e5d24aab 100644 --- a/poethepoet/ui.py +++ b/poethepoet/ui.py @@ -12,6 +12,10 @@ def guess_ansi_support(file): + if os.environ.get("NO_COLOR", "0")[0] != "0": + # https://no-color.org/ + return False + return ( (sys.platform != "win32" or "ANSICON" in os.environ) and hasattr(file, "isatty")