mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
disable pip version check in python hooks
This commit is contained in:
parent
ec6ba99715
commit
e492a5578c
1 changed files with 1 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ def bin_dir(venv: str) -> str:
|
||||||
|
|
||||||
def get_env_patch(venv: str) -> PatchesT:
|
def get_env_patch(venv: str) -> PatchesT:
|
||||||
return (
|
return (
|
||||||
|
('PIP_DISABLE_PIP_VERSION_CHECK', '1'),
|
||||||
('PYTHONHOME', UNSET),
|
('PYTHONHOME', UNSET),
|
||||||
('VIRTUAL_ENV', venv),
|
('VIRTUAL_ENV', venv),
|
||||||
('PATH', (bin_dir(venv), os.pathsep, Var('PATH'))),
|
('PATH', (bin_dir(venv), os.pathsep, Var('PATH'))),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue