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: 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, )