Skip to content
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

Ignore some options in requirements.txt #11

Closed
wants to merge 1 commit into from
Closed

Ignore some options in requirements.txt #11

wants to merge 1 commit into from

Conversation

wwuck
Copy link
Contributor

@wwuck wwuck commented Feb 3, 2020

Pip documentation has finally been updated for requirements.txt format specification. Some of the options don't appear to be relevant to what flake8-requirements is doing. Other options could also potentially be ignored, or may require special handling to implement support for them in flake8-requirements.

https://pip.pypa.io/en/stable/reference/pip_install/#requirements-file-format
https://pip.pypa.io/en/stable/news/#improved-documentation
pypa/pip#7385

Partially fixes #9

Pip documentation has finally been updated for requirements.txt format specification.  Some of the options don't appear to be relevant to what flake8-requirements is doing.  Other options could also potentially be ignored, or may require special handling to implement support for them in flake8-requirements.

https://pip.pypa.io/en/stable/reference/pip_install/#requirements-file-format
https://pip.pypa.io/en/stable/news/#improved-documentation
pypa/pip#7385

Partially fixes #9
@arkq
Copy link
Owner

arkq commented Feb 3, 2020

Thanks for this PR, but I think that some more general solution has to be developed. Currently I'm working on this issue. I hope that within this week I will manage to finish it.

At first I thought about using requirements-parser package, but the owner seeks maintainer, and there are some issues with parsing. And like you said, this linter does not need to extract all info from requirements.txt file. Hence, I've decided to stick with buildin "parser".

@arkq arkq closed this in d7283e3 Feb 3, 2020
@wwuck wwuck deleted the patch-1 branch February 3, 2020 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

parse error on --index-url and -c
2 participants