Skip to content

Commit bd25e9f

Browse files
build(deps): update ruff requirement from <0.8.7 to <0.9.1 (#873)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: William Woodruff <william@trailofbits.com>
1 parent 42adaa8 commit bd25e9f

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

pip_audit/_cli.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -554,9 +554,7 @@ def audit() -> None: # pragma: no cover
554554
)
555555
else:
556556
fix = cast(ResolvedFixVersion, fix)
557-
logger.info(
558-
f"Dry run: would have upgraded {fix.dep.name} to " f"{fix.version}"
559-
)
557+
logger.info(f"Dry run: would have upgraded {fix.dep.name} to {fix.version}")
560558
continue
561559

562560
if not fix.is_skipped():

pip_audit/_service/pypi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def query(self, spec: Dependency) -> tuple[Dependency, list[VulnerabilityResult]
104104
try:
105105
fix_versions = [Version(fixed_in) for fixed_in in v["fixed_in"]]
106106
except InvalidVersion as iv:
107-
raise ServiceError(f'Received malformed version from PyPI: {v["fixed_in"]}') from iv
107+
raise ServiceError(f"Received malformed version from PyPI: {v['fixed_in']}") from iv
108108

109109
# The ranges aren't guaranteed to come in chronological order
110110
fix_versions.sort()

pyproject.toml

+1-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ test = [
4747
"pytest-cov",
4848
]
4949
lint = [
50-
# NOTE(ww): ruff is under active development, so we pin conservatively here
51-
# and let Dependabot periodically perform this update.
52-
"ruff < 0.8.7",
50+
"ruff ~= 0.9",
5351
# HACK(ww): interrogate needs setuptools to provide `pkg_resources` on Python 3.12+;
5452
# remove this when https://github.com/econchick/interrogate/issues/164 is resolved.
5553
"setuptools",

0 commit comments

Comments
 (0)