Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #37

Merged
merged 3 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions context_chat_backend/chain/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
from typing_extensions import TypedDict

__all__ = [
'InDocument',
'ScopeType',
'ContextException',
'InDocument',
'LLMOutput',
'ScopeType',
]


Expand Down
4 changes: 2 additions & 2 deletions context_chat_backend/dyn_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion context_chat_backend/setup_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
6 changes: 3 additions & 3 deletions context_chat_backend/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
from pydantic import BaseModel

__all__ = [
'TEmbedding',
'TConfig',
'LoaderException',
'EmbeddingException',
'LoaderException',
'TConfig',
'TEmbedding',
]

class TEmbedding(BaseModel):
Expand Down
Loading