Merge pull request #4944 from smac89/patch-1

improve detection of CI
This commit is contained in:
Oz N Tiram
2022-02-10 11:13:35 +01:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
Use `CI` environment value, over mere existence of name
+1 -1
View File
@@ -99,7 +99,7 @@ def normalize_pipfile_path(p):
os.environ.pop("__PYVENV_LAUNCHER__", None)
# Internal, to tell whether the command line session is interactive.
SESSION_IS_INTERACTIVE = _isatty(sys.stdout)
PIPENV_IS_CI = bool("CI" in os.environ or "TF_BUILD" in os.environ)
PIPENV_IS_CI = env_to_bool(os.environ.get('CI') or os.environ.get('TF_BUILD') or False)
PIPENV_COLORBLIND = bool(os.environ.get("PIPENV_COLORBLIND"))
"""If set, disable terminal colors.