Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#492)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.7.2 → v0.8.6](astral-sh/ruff-pre-commit@v0.7.2...v0.8.6)
- [github.com/abravalheri/validate-pyproject: v0.22 → v0.23](abravalheri/validate-pyproject@v0.22...v0.23)

* Update pysolr.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
  • Loading branch information
pre-commit-ci[bot] and cclauss authored Jan 7, 2025
1 parent f109ac0 commit 25b3406
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
4 changes: 2 additions & 2 deletions pysolr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 25b3406

Please sign in to comment.