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

Fixes to allow newer packaging version. #451

Closed yeisonvargasf closed 1 year ago

yeisonvargasf commented 1 year ago

This PR fixes the issue with newer packaging versions by properly handling non-pinned versions in different contexts.

codecov[bot] commented 1 year ago

Codecov Report

Base: 77.16% // Head: 77.21% // Increases project coverage by +0.04% :tada:

Coverage data is based on head (74a0b80) compared to base (17ab306). Patch coverage: 85.71% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #451 +/- ## =========================================== + Coverage 77.16% 77.21% +0.04% =========================================== Files 25 25 Lines 3363 3436 +73 =========================================== + Hits 2595 2653 +58 - Misses 768 783 +15 ``` | [Impacted Files](https://codecov.io/gh/pyupio/safety/pull/451?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyupio) | Coverage Δ | | |---|---|---| | [tests/resources.py](https://codecov.io/gh/pyupio/safety/pull/451?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyupio#diff-dGVzdHMvcmVzb3VyY2VzLnB5) | `100.00% <ø> (ø)` | | | [safety/models.py](https://codecov.io/gh/pyupio/safety/pull/451?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyupio#diff-c2FmZXR5L21vZGVscy5weQ==) | `84.31% <71.79%> (-8.34%)` | :arrow_down: | | [safety/safety.py](https://codecov.io/gh/pyupio/safety/pull/451?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyupio#diff-c2FmZXR5L3NhZmV0eS5weQ==) | `81.37% <79.41%> (-0.45%)` | :arrow_down: | | [safety/output\_utils.py](https://codecov.io/gh/pyupio/safety/pull/451?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyupio#diff-c2FmZXR5L291dHB1dF91dGlscy5weQ==) | `88.94% <100.00%> (+0.13%)` | :arrow_up: | | [safety/util.py](https://codecov.io/gh/pyupio/safety/pull/451?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyupio#diff-c2FmZXR5L3V0aWwucHk=) | `84.49% <100.00%> (+0.29%)` | :arrow_up: | | [tests/formatters/test\_json.py](https://codecov.io/gh/pyupio/safety/pull/451?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyupio#diff-dGVzdHMvZm9ybWF0dGVycy90ZXN0X2pzb24ucHk=) | `100.00% <100.00%> (ø)` | | | [tests/test\_output\_utils.py](https://codecov.io/gh/pyupio/safety/pull/451?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyupio#diff-dGVzdHMvdGVzdF9vdXRwdXRfdXRpbHMucHk=) | `100.00% <100.00%> (ø)` | | | [tests/test\_safety.py](https://codecov.io/gh/pyupio/safety/pull/451?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyupio#diff-dGVzdHMvdGVzdF9zYWZldHkucHk=) | `98.70% <100.00%> (+<0.01%)` | :arrow_up: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyupio). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyupio)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.