From 51812fc010101c855c452904f4bc880a4f0b6374 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 22:40:59 +0000 Subject: [PATCH 1/2] [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.8.3 → v0.9.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.3...v0.9.1) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7fb449a..16cc5f1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ repos: - id: check-yaml - id: check-added-large-files - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.3 + rev: v0.9.1 hooks: - id: ruff args: [--fix] From d6eec21c103ac4979bf10d6faaa1307a65402034 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 22:41:05 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyalex/api.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyalex/api.py b/pyalex/api.py index 61ef20d..f549932 100644 --- a/pyalex/api.py +++ b/pyalex/api.py @@ -266,13 +266,12 @@ def _full_collection_name(self): def __getattr__(self, key): if key == "groupby": raise AttributeError( - "Object has no attribute 'groupby'. " "Did you mean 'group_by'?" + "Object has no attribute 'groupby'. Did you mean 'group_by'?" ) if key == "filter_search": raise AttributeError( - "Object has no attribute 'filter_search'. " - "Did you mean 'search_filter'?" + "Object has no attribute 'filter_search'. Did you mean 'search_filter'?" ) return getattr(self, key)