From 177f4f171e2c937be5efff30a082e832da3ada20 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Dec 2024 16:41:10 +0000 Subject: [PATCH] pre-commit.ci: pre-commit autoupdate (#37) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v5.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.3.5 → v0.8.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.5...v0.8.2) --------- Signed-off-by: Anupam Kumar Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Anupam Kumar --- .pre-commit-config.yaml | 4 ++-- context_chat_backend/chain/types.py | 4 ++-- context_chat_backend/dyn_loader.py | 4 ++-- context_chat_backend/setup_functions.py | 2 +- context_chat_backend/types.py | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a787884..a227463 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v5.0.0 hooks: - id: check-yaml - id: check-toml @@ -16,7 +16,7 @@ repos: exclude: persistent_storage - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.3.5 + rev: v0.8.2 hooks: - id: ruff diff --git a/context_chat_backend/chain/types.py b/context_chat_backend/chain/types.py index 3dcd992..4d9b2ab 100644 --- a/context_chat_backend/chain/types.py +++ b/context_chat_backend/chain/types.py @@ -9,10 +9,10 @@ from typing_extensions import TypedDict __all__ = [ - 'InDocument', - 'ScopeType', 'ContextException', + 'InDocument', 'LLMOutput', + 'ScopeType', ] diff --git a/context_chat_backend/dyn_loader.py b/context_chat_backend/dyn_loader.py index e8c72d3..ce9c810 100644 --- a/context_chat_backend/dyn_loader.py +++ b/context_chat_backend/dyn_loader.py @@ -55,8 +55,8 @@ def load(self): if pid.value > 0 and psutil.pid_exists(pid.value): return - proc = subprocess.Popen( - ['./main_em.py'], # noqa: S603 + proc = subprocess.Popen( # noqa: S603 + ['./main_em.py'], stdout=self.logfile, stderr=self.logfile, stdin=None, diff --git a/context_chat_backend/setup_functions.py b/context_chat_backend/setup_functions.py index 723fa4f..b8bf6e0 100644 --- a/context_chat_backend/setup_functions.py +++ b/context_chat_backend/setup_functions.py @@ -9,7 +9,7 @@ from .repair import runner -__all__ = ['setup_env_vars', 'repair_run', 'ensure_config_file'] +__all__ = ['ensure_config_file', 'repair_run', 'setup_env_vars'] def ensure_config_file(): diff --git a/context_chat_backend/types.py b/context_chat_backend/types.py index 694c27a..2e931a1 100644 --- a/context_chat_backend/types.py +++ b/context_chat_backend/types.py @@ -5,10 +5,10 @@ from pydantic import BaseModel __all__ = [ - 'TEmbedding', - 'TConfig', - 'LoaderException', 'EmbeddingException', + 'LoaderException', + 'TConfig', + 'TEmbedding', ] class TEmbedding(BaseModel):