Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#9860)
Browse files Browse the repository at this point in the history
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.6.3 → v0.6.5](astral-sh/ruff-pre-commit@v0.6.3...v0.6.5)
- [github.com/pre-commit/mirrors-eslint: v9.9.1 → v9.10.0](pre-commit/mirrors-eslint@v9.9.1...v9.10.0)
  • Loading branch information
pre-commit-ci[bot] committed Sep 20, 2024
1 parent 85d0ada commit ae33dd7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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]
Expand Down
6 changes: 3 additions & 3 deletions openlibrary/plugins/upstream/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('<script>', '').replace('</script>', '')
for _, change in enumerate(_changes):
change['__body__'] = (
change['__body__'].replace('<script>', '').replace('</script>', '')
)
return _changes

Expand Down

0 comments on commit ae33dd7

Please sign in to comment.