Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): update ruff requirement from <0.8.7 to <0.9.1 #873

Merged
merged 2 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading