Add 'dev-requirements.txt' to Pip Requirements #7681
+29
−0
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.
Add
dev-requirements.txtas a recognized filename for the existing "Pip requirements" language.Description
dev-requirements.txtis commonly used in Python projects in addition to the existingrequirements-dev.txtfilename. A GitHub code search returns 5.7k repos using this filename, includingpython/pythondotorg,pintrest/snappass,dropbox/sqlalchemy-stubs,Patreon/patreon-python,meta-pytorch/torchsnapshot, andoracle/oci-mlflowto name a few.There are multiple Python tools that recommend a filename of
dev-requirements.txt, including:pip-toolssuggests creating adev-requirements.txtfor development dependencies. While not officially affiliatedwith
pip,pip-toolshas over 20 million downloads in the past month, according to online trackers.pipenvmigration guide recommends exporting todev-requirements.txt:deptryuses bothdev-requirements.txtandrequirements-dev.txtas default filenames for development dependencies.dev-requirements.txtandrequirements-dev.txtas default filenames forpip_requirements_file.Since
linguistalready recognizesrequirements-dev.txtandrequirements.lock.txtfor Pip Requirements, addingdev-requirements.txtseems like a consistent addition that will improve highlighting for thousands of repos.I didn't open a separate issue for this small change... I apologize if that's a faux pas 😅