pyupio / safety

Safety checks Python dependencies for known security vulnerabilities and suggests the proper remediations for vulnerabilities detected.
https://safetycli.com/product/safety-cli
MIT License
1.66k stars 141 forks source link

Fix debug flag #542

Open dylanpulver opened 2 days ago

dylanpulver commented 2 days ago

The debug flag is now fixed. The following all work now:

 python -m safety --debug scan 
 python -m safety --debug 1 scan 
 python -m safety --debug true scan 

Because of the way the click group works, we need to preprocess the args and call preprocess_args() directly before the click decorators for the cli() function.

Added 3 new tests which are passing.

https://linear.app/pyup/issue/SFTY-915/-debug-flag-is-broken

dylanpulver commented 2 days ago
image