From 2a820a8a16d3b67c5c8d23861ba7428f4e3930b5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 20:35:37 +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 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v5.0.0) - [github.com/psf/black: 22.10.0 → 25.1.0](https://github.com/psf/black/compare/22.10.0...25.1.0) - [github.com/PyCQA/isort: 5.12.0 → 6.0.1](https://github.com/PyCQA/isort/compare/5.12.0...6.0.1) - [github.com/PyCQA/flake8: 5.0.4 → 7.2.0](https://github.com/PyCQA/flake8/compare/5.0.4...7.2.0) - [github.com/pre-commit/mirrors-mypy: v0.991 → v1.15.0](https://github.com/pre-commit/mirrors-mypy/compare/v0.991...v1.15.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 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4cf4daa..334d794 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: v5.0.0 hooks: - id: trailing-whitespace - id: check-added-large-files @@ -17,23 +17,23 @@ repos: - id: check-merge-conflict - repo: https://github.com/psf/black - rev: 22.10.0 + rev: 25.1.0 hooks: - id: black - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 6.0.1 hooks: - id: isort - repo: https://github.com/PyCQA/flake8 - rev: 5.0.4 + rev: 7.2.0 hooks: - id: flake8 additional_dependencies: [flake8-isort] - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v0.991' + rev: 'v1.15.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 0b611bb37bdabe78888ac0117051d1f23376e429 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 20:35:44 +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, )