Update file size to 500 kilobytes#5596
Update file size to 500 kilobytes#5596jeffwidman merged 1 commit intodependabot:mainfrom stulle123:update-file-size
Conversation
|
Thanks for splitting that out! Why the bump all the way to 500KB? Just how big is your |
|
After a second thought, I think this size limit change is acceptable without tests. It could be consider configuration after all, even if currently hardcoded. I think testing this kind of thing might be a bit overkill. What do you think? In any case, I think the right way to go about this in the future is to make the manifest name configurable, and remove parsing all files of a certain size and guessing which of them are actually manifest files. Just parse the well known manifest files and let users explicitly configure more unusual situations. So in my opinion this file size should eventually go away anyways. |
|
I'm +1 to no tests for now on this. I'll file an issue later today about non-standard manifest file names should require custom config and we can discuss more there once I write it up. Also, after thinking about it more, I'm okay with going straight to 500... for most repos it'll have no effect, and for a few pathological ones it'll cause them to run out of memory but it'd take a lot of files for an extra 200KB to cause a problem unless we're making a lot of copies in memory of the file content... in which case the code could probably be cleaned up a little. |
|
Great! Anything I can still do here? :-) |
Hi there,
This PR is a result from a discussion in #5580 where @jeffwidman asked to split up the original PR into two.
The purpose of this PR is to increase the file size of
requirements.txtfiles to 500 kilobytes.Especially in large projects,
pip-tools-compiledrequirement.txtfiles can get pretty big.As @dws mentioned here the ideal solution would be to have the file size as a configurable parameter.
If this change requires any unit tests please point me to existing examples.
Thanks!