Skip to content

Commit

Permalink
pre-commit.ci: pre-commit autoupdate (#37)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 →
v5.0.0](pre-commit/pre-commit-hooks@v4.5.0...v5.0.0)
- [github.com/astral-sh/ruff-pre-commit: v0.3.5 →
v0.8.2](astral-sh/ruff-pre-commit@v0.3.5...v0.8.2)
<!--pre-commit.ci end-->

---------

Signed-off-by: Anupam Kumar <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Anupam Kumar <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and kyteinsky authored Dec 16, 2024
1 parent f44eada commit 177f4f1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
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

0 comments on commit 177f4f1

Please sign in to comment.