di / pytest-reqs

py.test plugin for checking requirements files
https://pypi.org/p/pytest-reqs
MIT License
25 stars 6 forks source link

Added '*-requirements.{txt,pip}' patterns #6

Closed jhermann closed 7 years ago

di commented 7 years ago

Hey @jhermann! Thanks for your PR.

I'm a little hesitant to merge this as-is, because although I'd like to be able to support as many individual use cases as possible, I don't want them to be baked directly into pytest-reqs.

While there aren't any restrictions on what filenames are or are not valid for requirements files, the patterns which are currently supported by pytest-reqs are the same common patterns supported by other automated tools around requirements files (for example, https://requires.io/).

Instead, I think it'd be really great if it was possible to override the patterns being searched via the [pytest] section of a setup.cfg file, for example, with a field such as reqsfilenamepatterns. I've created #7 to address this -- if you're feeling up for it, please feel free to tackle it!