Skip to content

Commit

Permalink
fix UP031
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <[email protected]>
  • Loading branch information
woodruffw committed Nov 22, 2024
1 parent 4549c22 commit f11e818
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pip_audit/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,11 +572,15 @@ def audit() -> None: # pragma: no cover
fixes.append(fix)

if vuln_count > 0:
if vuln_ignore_count:
ignored = f", ignored {vuln_ignore_count}"
else:
ignored = ""

summary_msg = (
f"Found {vuln_count} known "
f"{'vulnerability' if vuln_count == 1 else 'vulnerabilities'}"
f"{(vuln_ignore_count and ', ignored %d ' % vuln_ignore_count) or ' '}"
f"in {pkg_count} {'package' if pkg_count == 1 else 'packages'}"
f"{ignored} in {pkg_count} {'package' if pkg_count == 1 else 'packages'}"
)
if args.fix:
summary_msg += (
Expand Down

0 comments on commit f11e818

Please sign in to comment.