mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
lint: Enable flake8-unused-arguments
Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
This commit is contained in:
parent
4244632a2f
commit
d6c1a22be1
3 changed files with 3 additions and 2 deletions
|
|
@ -83,6 +83,7 @@ line-length=80
|
|||
[tool.ruff.lint]
|
||||
select = [
|
||||
"A", # flake8-builtins
|
||||
"ARG", # flake8-unused-arguments
|
||||
"B", # flake8-bugbear
|
||||
"BLE", # flake8-blind-except
|
||||
"C4", # flake8-comprehensions
|
||||
|
|
|
|||
|
|
@ -255,7 +255,7 @@ def from_priv_key_uri(
|
|||
def public_key(self) -> Key:
|
||||
raise RuntimeError("Not a real signer")
|
||||
|
||||
def sign(self, payload: bytes) -> Signature:
|
||||
def sign(self, _payload: bytes) -> Signature:
|
||||
raise RuntimeError("signing failed")
|
||||
|
||||
failing_signer = FailingSigner()
|
||||
|
|
|
|||
|
|
@ -281,7 +281,7 @@ def test_length_hash_mismatch(self) -> None:
|
|||
|
||||
def test_updating_root(self) -> None:
|
||||
# Bump root version, resign and refresh
|
||||
self._modify_repository_root(lambda root: None, bump_version=True)
|
||||
self._modify_repository_root(lambda _: None, bump_version=True)
|
||||
self.updater.refresh()
|
||||
self.assertEqual(self.updater._trusted_set.root.version, 2)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue