Merge pull request #1421 from pre-commit/quiet_you_pip

disable pip version check in python hooks
This commit is contained in:
Anthony Sottile 2020-04-29 21:26:16 -07:00 committed by GitHub
commit 0670e0b287
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'))),