From 7c85a017c1356ce59a3cb2f1c73e466032c484d6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 7 Jan 2025 00:51:31 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.2 → v0.8.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.2...v0.8.6) - [github.com/abravalheri/validate-pyproject: v0.22 → v0.23](https://github.com/abravalheri/validate-pyproject/compare/v0.22...v0.23) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8da1537..832cf5a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -36,7 +36,7 @@ repos: - tomli - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.2 + rev: v0.8.6 hooks: - id: ruff @@ -51,6 +51,6 @@ repos: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.22 + rev: v0.23 hooks: - id: validate-pyproject From c3773b37697f7b5c39e40f5bab72de169e069697 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 7 Jan 2025 05:37:40 +0100 Subject: [PATCH 2/3] Update pysolr.py --- pysolr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysolr.py b/pysolr.py index 88cd860..a892266 100644 --- a/pysolr.py +++ b/pysolr.py @@ -287,7 +287,7 @@ def __init__(self, decoded, next_page_query=None): self.grouped = decoded.get("grouped", {}) self.nextCursorMark = decoded.get("nextCursorMark", None) self._next_page_query = ( - self.nextCursorMark is not None and next_page_query or None + (self.nextCursorMark is not None and next_page_query) or None ) def __len__(self): From b52199b080878e66f23529fb928dcdc7cf852cd2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 7 Jan 2025 04:37:48 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pysolr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pysolr.py b/pysolr.py index a892266..0484c17 100644 --- a/pysolr.py +++ b/pysolr.py @@ -287,8 +287,8 @@ def __init__(self, decoded, next_page_query=None): self.grouped = decoded.get("grouped", {}) self.nextCursorMark = decoded.get("nextCursorMark", None) self._next_page_query = ( - (self.nextCursorMark is not None and next_page_query) or None - ) + self.nextCursorMark is not None and next_page_query + ) or None def __len__(self): if self._next_page_query: