diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 77035e74b20..625b46ca8d8 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -32,7 +32,7 @@ repos:
- id: auto-walrus
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.6.3
+ rev: v0.6.5
hooks:
- id: ruff
@@ -71,7 +71,7 @@ repos:
- id: validate-pyproject
- repo: https://github.com/pre-commit/mirrors-eslint
- rev: v9.9.1
+ rev: v9.10.0
hooks:
- id: eslint
types: [file]
diff --git a/openlibrary/plugins/upstream/utils.py b/openlibrary/plugins/upstream/utils.py
index 06e872a41c1..833c1a2db55 100644
--- a/openlibrary/plugins/upstream/utils.py
+++ b/openlibrary/plugins/upstream/utils.py
@@ -1442,9 +1442,9 @@ def get_random_recent_changes(n):
changes = _get_recent_changes()
_changes = random.sample(changes, n) if len(changes) > n else changes
- for i, change in enumerate(_changes):
- _changes[i]['__body__'] = (
- _changes[i]['__body__'].replace('', '')
+ for _, change in enumerate(_changes):
+ change['__body__'] = (
+ change['__body__'].replace('', '')
)
return _changes