From e492a5578cb1bc6b0200e2b99f58eebb76884a16 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Wed, 29 Apr 2020 08:20:14 -0700 Subject: [PATCH] disable pip version check in python hooks --- pre_commit/languages/python.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pre_commit/languages/python.py b/pre_commit/languages/python.py index 85d82810..de3dd452 100644 --- a/pre_commit/languages/python.py +++ b/pre_commit/languages/python.py @@ -34,6 +34,7 @@ def bin_dir(venv: str) -> str: def get_env_patch(venv: str) -> PatchesT: return ( + ('PIP_DISABLE_PIP_VERSION_CHECK', '1'), ('PYTHONHOME', UNSET), ('VIRTUAL_ENV', venv), ('PATH', (bin_dir(venv), os.pathsep, Var('PATH'))),