From ae33dd78eb915496f3c942404943f7ff31278564 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Thu, 19 Sep 2024 20:10:35 -0700
Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#9860)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.6.3 → v0.6.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.3...v0.6.5)
- [github.com/pre-commit/mirrors-eslint: v9.9.1 → v9.10.0](https://github.com/pre-commit/mirrors-eslint/compare/v9.9.1...v9.10.0)
---
.pre-commit-config.yaml | 4 ++--
openlibrary/plugins/upstream/utils.py | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
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