Skip to content

Commit d6c1a22

Browse files
committed
lint: Enable flake8-unused-arguments
Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
1 parent 4244632 commit d6c1a22

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ line-length=80
8383
[tool.ruff.lint]
8484
select = [
8585
"A", # flake8-builtins
86+
"ARG", # flake8-unused-arguments
8687
"B", # flake8-bugbear
8788
"BLE", # flake8-blind-except
8889
"C4", # flake8-comprehensions

tests/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def from_priv_key_uri(
255255
def public_key(self) -> Key:
256256
raise RuntimeError("Not a real signer")
257257

258-
def sign(self, payload: bytes) -> Signature:
258+
def sign(self, _payload: bytes) -> Signature:
259259
raise RuntimeError("signing failed")
260260

261261
failing_signer = FailingSigner()

tests/test_updater_ng.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def test_length_hash_mismatch(self) -> None:
281281

282282
def test_updating_root(self) -> None:
283283
# Bump root version, resign and refresh
284-
self._modify_repository_root(lambda root: None, bump_version=True)
284+
self._modify_repository_root(lambda _: None, bump_version=True)
285285
self.updater.refresh()
286286
self.assertEqual(self.updater._trusted_set.root.version, 2)
287287

0 commit comments

Comments
 (0)