-
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parse Django version from requirements.txt #322
Comments
I like the idea but we’d need slightly more robust parsing code. Also some tools use other sources like
This isn't compatible with pre-commit, which runs tools in isolated environments. So it could help some users, but I feel a majority use pre-commit.
Perhaps we could repurpose |
Awesome idea. Keeps it simple. |
On second thoughts, a mutally exclusive argument like Would you like to work on this @johnnymetz , at least for |
I agree. Great idea.
I'd love to work on this if that's okay, unless you really want to implement then happy to pass to off. |
Yes please try it! |
Rather than |
I was going to take a look at implementing this change, but was wondering which setting to use as the source? Black uses Do you envision a new setting for |
Let's parse |
Thanks. The python |
Description
Request
It would be awesome if this package could parse the Django version from
requirements.txt
so I don't need to remember to bump the version every time I upgrade the package inrequirements.txt
. Example code:Another option is to use the current version of Django installed, although this doesn't seem fool-proof (in case someone hasn't updating their requirements in a while):
CLI design notes
Per the docs:
So we may not want to change that default for backward compatibility reasons. Perhaps this could live under a separate flag
--parse-version-from-requirements
or something like.Notes
I'm happy to work on this if you think this is doable and worthwhile.
The text was updated successfully, but these errors were encountered: