Merge pull request #4797 from ELHoussineT/patch-1

Use PIPENV_SKIP_LOCK environment variable
This commit is contained in:
Oz N Tiram
2022-02-20 19:50:37 +01:00
committed by GitHub
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
Use environment variable `PIPENV_SKIP_LOCK` to control the behaviour of lock skipping.
+3 -1
View File
@@ -313,13 +313,15 @@ class Setting:
if interactive.
"""
self.PIPENV_SKIP_LOCK = False
self.PIPENV_SKIP_LOCK = bool(os.environ.get("PIPENV_SKIP_LOCK", False))
"""If set, Pipenv won't lock dependencies automatically.
This might be desirable if a project has large number of dependencies,
because locking is an inherently slow operation.
Default is to lock dependencies and update ``Pipfile.lock`` on each run.
Usage: `export PIPENV_SKIP_LOCK=true` OR `export PIPENV_SKIP_LOCK=1` to skip automatic locking
NOTE: This only affects the ``install`` and ``uninstall`` commands.
"""