-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Allow check to ignore packages #2408
Conversation
this is a fix for #2407, we were collecting the arguments passed but not actually passing them to safety |
needs test |
pipenv/core.py
Outdated
@@ -2409,9 +2409,14 @@ def do_check(three=None, python=False, system=False, unused=False, args=None): | |||
python = which('python') | |||
else: | |||
python = system_which('python') | |||
|
|||
try: | |||
ignore = ' '.join(args) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using ignore
here is confusing, because there could be other args. Consider using safety_args
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jarshwah I renamed the parameter option to |
@erinxocon it won't allow callers to ignore multiple issues. Can you make safety_ignore args a list, and then explode to multiple Something like this perhaps?
See: https://github.com/pyupio/safety#--ignore--i |
ahh ok, I wasn't familiar with the api for safety. Hold please |
No problem! For what it's worth, I don't think (m)any of the other CLI options to safety would be useful from |
Ok @jarshwah, I've updated the syntax to EDIT: I eat my words, adding an option was exactly what I ended up doing haha, thanks @jarshwah |
Turn around time on this one was super fast, thanks so much! |
(I removed a print statement) Does it make sense to change this to |
Signed-off-by: Dan Ryan <[email protected]>
Swapped it over to |
thanks @techalchemy, I should have created the news. Sorry for leaving print in there, I was debugging. |
and append it to the call to safety