Skip to content

Commit

Permalink
Merge pull request #2765 from theupdateframework/dependabot/pip/test-…
Browse files Browse the repository at this point in the history
…and-lint-dependencies-982229149a

build(deps): bump ruff from 0.8.6 to 0.9.1 in the test-and-lint-dependencies group
  • Loading branch information
jku authored Jan 17, 2025
2 parents e49b613 + 5b2c041 commit 717bc1a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements/lint.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Lint tools
# (We are not so interested in the specific versions of the tools: the versions
# are pinned to prevent unexpected linting failures when tools update)
ruff==0.8.6
ruff==0.9.1
mypy==1.14.1

# Required for type stubs
Expand Down
2 changes: 1 addition & 1 deletion tuf/api/_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,7 @@ def __init__(
self.number_of_bins = 2**bit_length
# suffix_len is calculated based on "number_of_bins - 1" as the name
# of the last bin contains the number "number_of_bins -1" as a suffix.
self.suffix_len = len(f"{self.number_of_bins-1:x}")
self.suffix_len = len(f"{self.number_of_bins - 1:x}")

def __eq__(self, other: object) -> bool:
if not isinstance(other, SuccinctRoles):
Expand Down
3 changes: 3 additions & 0 deletions tuf/api/serialization/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
verification.
"""

# We should not have shadowed stdlib json but that milk spilled already
# ruff: noqa: A005

import json
from typing import Optional

Expand Down

0 comments on commit 717bc1a

Please sign in to comment.