Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0670e0b

Browse files
authored
Merge pull request #1421 from pre-commit/quiet_you_pip
disable pip version check in python hooks
2 parents ec6ba99 + e492a55 commit 0670e0b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)