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 new policy commands, adding some tests and last fixes #376

Closed yeisonvargasf closed 2 years ago

yeisonvargasf commented 2 years ago

This PR adds two new policy commands, increases the coverage, and makes some fixes in the whole code.

codecov[bot] commented 2 years ago

Codecov Report

Merging #376 (0b7fbb4) into develop (873725f) will increase coverage by 1.73%. The diff coverage is 75.75%.

@@             Coverage Diff             @@
##           develop     #376      +/-   ##
===========================================
+ Coverage    83.98%   85.71%   +1.73%     
===========================================
  Files           14       14              
  Lines         1417     1533     +116     
===========================================
+ Hits          1190     1314     +124     
+ Misses         227      219       -8     
Impacted Files Coverage Δ
safety/constants.py 100.00% <ø> (ø)
safety/output_utils.py 87.05% <56.00%> (+2.50%) :arrow_up:
safety/formatters/text.py 68.42% <66.66%> (-0.67%) :arrow_down:
safety/util.py 80.55% <71.01%> (-1.99%) :arrow_down:
safety/formatters/screen.py 88.46% <81.81%> (+15.91%) :arrow_up:
safety/cli.py 86.18% <91.30%> (+11.18%) :arrow_up:
safety/formatters/json.py 92.30% <100.00%> (+0.20%) :arrow_up:
safety/safety.py 90.18% <100.00%> (+0.31%) :arrow_up:
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 873725f...0b7fbb4. Read the comment docs.