X Tutup
Skip to content

Commit e492a55

Browse files
committed
disable pip version check in python hooks
1 parent ec6ba99 commit e492a55

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pre_commit/languages/python.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def bin_dir(venv: str) -> str:
3434

3535
def get_env_patch(venv: str) -> PatchesT:
3636
return (
37+
('PIP_DISABLE_PIP_VERSION_CHECK', '1'),
3738
('PYTHONHOME', UNSET),
3839
('VIRTUAL_ENV', venv),
3940
('PATH', (bin_dir(venv), os.pathsep, Var('PATH'))),

0 commit comments

Comments
 (0)
X Tutup