Move the Pipfile
/Pipfile.lock
fixtures to a clearly named folder
#7700
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This does two things:
lockfiles
directory to thepipfile_files
directory.pipfiles
directory to thepipfile_files
directory.All the files in
lockfiles
are actually specific topipenv
and theirpipfile.lock
file format. So I was a bit surprised becausepoetry
also has a lockfile format... why aren't those also in thelockfiles
directory? But instead those are over inpyproject_locks
dir (which is actually much more convenient for navigating the fixtures!).I think what happened is that when
pipenv
popularized thePipfile
/Pipfile.lock
format, there was a lot of initial excitement that it might become the lockfile format within Python. So Grey may have called itlockfile
assuming that other tooling would start to migrate towards this. However,pipenv
made some design choices that made it a "fails-to-take-over-the-world-because-it-tries-to-do-too-much" type of tool.At first I started by merely renaming the folder from
lockfiles
topipfile_lockfiles
.However, while I was working regenerating the
pipfile.lock
files (#7697) I found it a royal pain to jump back and forth between two folders where one holds the inputPipfile
and the other holds the outputPipfile.lock
files. And the lockfiles already have a.lock
suffix. So instead merging them into a single folder makes it easier to spot when a file should be regenerated into a lockfile vs when it'll fail to even generate a lockfile.So this hopefully makes things a lot clearer / less ambiguous for anyone working on this section of code.