-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Is your feature request related to a problem? Please describe.
We have started using pipenv
in our project and its great. But it has a tendency to pollute my filesystem with Pipfiles
if I do not pay close attention to where I am issuing my commands.
If I am in a directory whose parents do not have Pipfiles
, pipenv
will simply create a new one no matter what command I issue. This is contrary to what I would expect and definitely contrary to other tools do such as git
.
Describe the solution you'd like
For instance git
will not start a git repo because I simply issued git status
on a non-tracked directory, rather it issues an error:
fatal: not a git repository (or any of the parent directories): .git
Now I would expect pipenv
to do something similar and only create a Pipfile
once I initialise a given repository.
Second and related to the above problem, git
has a very useful option git -C <path>
which will run as if git was started in path
instead of the current working directory. Although pipenv
has the PIPENV_PIPFILE
, it is not as useful and concise as -C
. See a related discussion about git
in here.