From 0dc4410572a8159a5924520e379474ad022949ac Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Dec 2025 22:11:22 +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 → 25.12.0](https://github.com/psf/black-pre-commit-mirror/compare/22.10.0...25.12.0) - [github.com/PyCQA/isort: 5.12.0 → 7.0.0](https://github.com/PyCQA/isort/compare/5.12.0...7.0.0) - [github.com/PyCQA/flake8: 5.0.4 → 7.3.0](https://github.com/PyCQA/flake8/compare/5.0.4...7.3.0) - [github.com/pre-commit/mirrors-mypy: v0.991 → v1.19.0](https://github.com/pre-commit/mirrors-mypy/compare/v0.991...v1.19.0) - [github.com/PyCQA/autoflake: v2.2.1 → v2.3.1](https://github.com/PyCQA/autoflake/compare/v2.2.1...v2.3.1) --- .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..546e1c9 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: 25.12.0 hooks: - id: black - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 7.0.0 hooks: - id: isort - repo: https://github.com/PyCQA/flake8 - rev: 5.0.4 + rev: 7.3.0 hooks: - id: flake8 additional_dependencies: [flake8-isort] - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v0.991' + rev: 'v1.19.0' 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.3.1' hooks: - id: autoflake args: From 3bc2fa0a364da7b2815e970984ba3a61aeacf029 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Dec 2025 22:11:30 +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, )