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

conversation.py to chat.py #101

Merged
merged 4 commits into from
Oct 26, 2023
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
23 changes: 10 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,18 @@ repos:
- id: check-merge-conflict
- id: check-yaml
args: [--unsafe]
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.8.0
# Run the Ruff formatter.
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.0.291
hooks:
- id: isort
args: ["--filter-files"]
- repo: https://github.com/ambv/black
rev: 23.3.0
- id: ruff-format
# Run the Ruff linter.
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.0.291
hooks:
- id: black
language_version: python3.11
- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
additional_dependencies: [flake8-typing-imports==1.10.0]
- id: ruff
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.901
hooks:
Expand Down
13 changes: 2 additions & 11 deletions chatlab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,9 @@

from . import models
from ._version import __version__
from .conversation import Chat
from .chat import Chat
from .decorators import ChatlabMetadata, expose_exception_to_llm
from .messaging import (
ai,
assistant,
assistant_function_call,
function_result,
human,
narrate,
system,
user,
)
from .messaging import ai, assistant, assistant_function_call, function_result, human, narrate, system, user
from .registry import FunctionRegistry
from .views.markdown import Markdown

Expand Down
File renamed without changes.
4 changes: 1 addition & 3 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ sources = chatlab
test: format lint unittest

format:
isort $(sources) tests
black $(sources) tests
ruff format .

lint:
flake8 $(sources) tests
mypy $(sources) tests

unittest:
Expand Down
Loading