8000 [pre-commit.ci] pre-commit autoupdate (#2007) · django-haystack/django-haystack@9f970a8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9f970a8

Browse files
[pre-commit.ci] pre-commit autoupdate (#2007)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/adamchainz/django-upgrade: 1.23.1 → 1.24.0](adamchainz/django-upgrade@1.23.1...1.24.0) - [github.com/astral-sh/ruff-pre-commit: v0.9.9 → v0.11.4](astral-sh/ruff-pre-commit@v0.9.9...v0.11.4) * facet_types.update(dict.fromkeys(facets, "fields")) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Christian Clauss <cclauss@me.com>
1 parent 9a7e091 commit 9f970a8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ ci:
33
exclude: ".*/vendor/.*"
44
repos:
55
- repo: https://github.com/adamchainz/django-upgrade
6-
rev: 1.23.1
6+
rev: 1.24.0
77
hooks:
88
- id: django-upgrade
99
args: [--target-version, "5.1"] # Replace with Django version
1010

1111
- repo: https://github.com/astral-sh/ruff-pre-commit
12-
rev: v0.9.9
12+
rev: v0.11.4
1313
hooks:
1414
- id: ruff
1515
# args: [ --fix, --exit-non-zero-on-fix ]

haystack/backends/whoosh_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def search(
462462
group_by += [
463463
FieldFacet(facet, allow_overlap=True, maptype=Count) for facet in facets
464464
]
465-
facet_types.update({facet: "fields" for facet in facets})
465+
facet_types.update(dict.fromkeys(facets, "fields"))
466466

467467
if date_facets is not None:
468468

0 commit comments

Comments
 (0)
0