From 3b3c38634249d1c15ecfc76c5fc9dd9a5b57bef7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 28 Sep 2026 23:02:54 +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/pre-commit/pre-commit-hooks: v4.3.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v6.0.0) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 22.10.0 → 26.5.1](https://github.com/psf/black-pre-commit-mirror/compare/22.10.0...26.5.1) - [github.com/PyCQA/isort: 5.12.0 → 9.0.2](https://github.com/PyCQA/isort/compare/5.12.0...9.0.2) - [github.com/PyCQA/flake8: 5.0.4 → 7.4.1](https://github.com/PyCQA/flake8/compare/5.0.4...7.4.1) - [github.com/pre-commit/mirrors-mypy: v0.991 → v2.3.1](https://github.com/pre-commit/mirrors-mypy/compare/v0.991...v2.3.1) - [github.com/PyCQA/autoflake: v2.2.1 → v2.4.0](https://github.com/PyCQA/autoflake/compare/v2.2.1...v2.4.0) --- .pre-commit-config.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4cf4daa..62ead13 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,10 +1,10 @@ fail_fast: true -default_stages: [commit] +default_stages: [pre-commit] exclude: ".git|.tox" repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: check-added-large-files @@ -16,24 +16,24 @@ repos: - id: check-toml - id: check-merge-conflict - - repo: https://github.com/psf/black - rev: 22.10.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.5.1 hooks: - id: black - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 9.0.2 hooks: - id: isort - repo: https://github.com/PyCQA/flake8 - rev: 5.0.4 + rev: 7.4.1 hooks: - id: flake8 additional_dependencies: [flake8-isort] - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v0.991' + rev: 'v2.3.1' hooks: - id: mypy args: @@ -51,7 +51,7 @@ repos: - "--no-warn-return-any" - repo: https://github.com/PyCQA/autoflake - rev: 'v2.2.1' + rev: 'v2.4.0' hooks: - id: autoflake args: From d47fd742ab8649c1f8c273927d95efbc28717838 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 28 Sep 2026 23:03:42 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/nylas/crud.py | 1 + src/utils/engine.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nylas/crud.py b/src/nylas/crud.py index c68d25c..c8a06d8 100644 --- a/src/nylas/crud.py +++ b/src/nylas/crud.py @@ -22,6 +22,7 @@ login_user: Fetch and return serialized user info upon logging in. find_existed_token: Find a token in a token list. """ + from bson import ( ObjectId, ) diff --git a/src/utils/engine.py b/src/utils/engine.py index d6255d8..ad5dc7b 100644 --- a/src/utils/engine.py +++ b/src/utils/engine.py @@ -14,7 +14,6 @@ """ - from fastapi import ( FastAPI, )