From 360b68476907866f24507f00393234d111e7d7b9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Jan 2025 16:34:48 +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/asottile/pyupgrade: v3.19.0 → v3.19.1](https://github.com/asottile/pyupgrade/compare/v3.19.0...v3.19.1) - [github.com/astral-sh/ruff-pre-commit: v0.7.1 → v0.9.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.1...v0.9.3) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a8454a27..afc6552a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,13 +14,13 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/asottile/pyupgrade - rev: v3.19.0 + rev: v3.19.1 hooks: - id: pyupgrade args: - --py38-plus - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.1 + rev: v0.9.3 hooks: - id: ruff args: From b4624c48fa623f89790eaa90db1ff98f1761df34 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Jan 2025 16:35:15 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- examples/sqla_multiple_pks/__init__.py | 2 +- starlette_admin/contrib/mongoengine/helpers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/sqla_multiple_pks/__init__.py b/examples/sqla_multiple_pks/__init__.py index e7ec8350..a48d5c2f 100644 --- a/examples/sqla_multiple_pks/__init__.py +++ b/examples/sqla_multiple_pks/__init__.py @@ -3,7 +3,7 @@ from .config import ENGINE_URI -__all__ = ["engine", "Base"] +__all__ = ["Base", "engine"] engine = create_engine(ENGINE_URI, connect_args={"check_same_thread": False}, echo=True) Base = declarative_base() diff --git a/starlette_admin/contrib/mongoengine/helpers.py b/starlette_admin/contrib/mongoengine/helpers.py index c4932921..ce2f4a06 100644 --- a/starlette_admin/contrib/mongoengine/helpers.py +++ b/starlette_admin/contrib/mongoengine/helpers.py @@ -3,7 +3,7 @@ import mongoengine.fields as me from mongoengine.base.fields import BaseField as MongoBaseField -from mongoengine.queryset import Q as BaseQ # noqa: N811 +from mongoengine.queryset import Q as BaseQ from mongoengine.queryset import QNode