Skip to content

Commit

Permalink
build(deps): update ruff requirement from <0.7.5 to <0.8.1 (#859)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: William Woodruff <[email protected]>
  • Loading branch information
dependabot[bot] and woodruffw authored Nov 22, 2024
1 parent c65f200 commit c335d64
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c335d64

Please sign in to comment.