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

Adding support for an "ignore file" Issue #351 #362

Open albertcrowley opened 2 years ago

albertcrowley commented 2 years ago

Here is a first draft of an implementation of an "ignore file" The ignore file consists of lines with vulnerability IDs followed optionally by an expiration date after which the vulnerability will no longer be ignored. It also supports comments in the file using a # mark. The command line option is -f or --ignore-file. Additional details are in the update I made to the README.md.

My apologies for modifying the whitespace in a few lines. That was done by my editor and I didn't realize it until after the commit.