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

return code is 0 even though nothing was checked #486

Open
vitamins opened this issue Dec 16, 2023 · 0 comments
Open

return code is 0 even though nothing was checked #486

vitamins opened this issue Dec 16, 2023 · 0 comments

Comments

@vitamins
Copy link

vitamins commented Dec 16, 2023

The return code 0 should mean that that the given packages have been successfully checked.

p = subprocess.run(["safety", "check", "--output", "bare", "--stdin"], input="django", capture_output=True, text=True)
print(p.returncode)
0
print(p.stderr)
Warning: unpinned requirement 'django' found in None, unable to check.

I know that i can set input="django==5.0" to make it work but that is not the point.

Also, if there is a way to use safety without subprocess from python it would be perfect.

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

No branches or pull requests

1 participant