Skip to content

Commit

Permalink
build(deps): update ruff requirement from <0.8.7 to <0.9.1 (#873)
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 Jan 10, 2025
1 parent 42adaa8 commit bd25e9f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions pip_audit/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,7 @@ def audit() -> None: # pragma: no cover
)
else:
fix = cast(ResolvedFixVersion, fix)
logger.info(
f"Dry run: would have upgraded {fix.dep.name} to " f"{fix.version}"
)
logger.info(f"Dry run: would have upgraded {fix.dep.name} to {fix.version}")
continue

if not fix.is_skipped():
Expand Down
2 changes: 1 addition & 1 deletion pip_audit/_service/pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def query(self, spec: Dependency) -> tuple[Dependency, list[VulnerabilityResult]
try:
fix_versions = [Version(fixed_in) for fixed_in in v["fixed_in"]]
except InvalidVersion as iv:
raise ServiceError(f'Received malformed version from PyPI: {v["fixed_in"]}') from iv
raise ServiceError(f"Received malformed version from PyPI: {v['fixed_in']}") from iv

# The ranges aren't guaranteed to come in chronological order
fix_versions.sort()
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ test = [
"pytest-cov",
]
lint = [
# NOTE(ww): ruff is under active development, so we pin conservatively here
# and let Dependabot periodically perform this update.
"ruff < 0.8.7",
"ruff ~= 0.9",
# 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 bd25e9f

Please sign in to comment.