From 4549c227d9c047a993760f23404955fc56e30077 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 22 Nov 2024 16:37:29 +0000 Subject: [PATCH 1/2] build(deps): update ruff requirement from <0.7.5 to <0.8.1 Updates the requirements on [ruff](https://github.com/astral-sh/ruff) to permit the latest version. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.0.18...0.8.0) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 931c0459..c23e6a7e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ test = [ lint = [ # NOTE(ww): ruff is under active development, so we pin conservatively here # and let Dependabot periodically perform this update. - "ruff < 0.7.5", + "ruff < 0.8.1", # HACK(ww): interrogate needs setuptools to provide `pkg_resources` on Python 3.12+; # remove this when https://github.com/econchick/interrogate/issues/164 is resolved. "setuptools", From f11e81872b48b0176c24352a0d690be6d4258ce1 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Fri, 22 Nov 2024 13:18:20 -0500 Subject: [PATCH 2/2] fix UP031 Signed-off-by: William Woodruff --- pip_audit/_cli.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pip_audit/_cli.py b/pip_audit/_cli.py index c6bc7b91..a7c67dfb 100644 --- a/pip_audit/_cli.py +++ b/pip_audit/_cli.py @@ -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 += (