-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from rgbkrk/ruff
Ruff
- Loading branch information
Showing
23 changed files
with
406 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: Ruff | ||
on: [ push, pull_request ] | ||
jobs: | ||
ruff: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: chartboost/ruff-action@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,15 +13,24 @@ | |
""" | ||
|
||
__author__ = """Kyle Kelley""" | ||
__email__ = '[email protected]' | ||
__email__ = "[email protected]" | ||
|
||
from deprecation import deprecated | ||
|
||
from . import models | ||
from ._version import __version__ | ||
from .conversation 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 | ||
|
||
|
@@ -33,7 +42,12 @@ class Session(Chat): | |
Session is deprecated. Use `Chat` instead. | ||
""" | ||
|
||
@deprecated(deprecated_in="0.13.0", removed_in="1.0.0", current_version=__version__, details="Use `Chat` instead.") | ||
@deprecated( | ||
deprecated_in="0.13.0", | ||
removed_in="1.0.0", | ||
current_version=__version__, | ||
details="Use `Chat` instead.", | ||
) | ||
def __init__(self, *args, **kwargs): | ||
"""Initialize a Session with an optional initial context of messages. | ||
|
@@ -48,7 +62,12 @@ class Conversation(Chat): | |
Conversation is deprecated. Use `Chat` instead. | ||
""" | ||
|
||
@deprecated(deprecated_in="1.0.0", removed_in="1.1.0", current_version=__version__, details="Use `Chat` instead.") | ||
@deprecated( | ||
deprecated_in="1.0.0", | ||
removed_in="1.1.0", | ||
current_version=__version__, | ||
details="Use `Chat` instead.", | ||
) | ||
def __init__(self, *args, **kwargs): | ||
"""Initialize a Session with an optional initial context of messages. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '1.0.0-alpha.27' | ||
__version__ = "1.0.0-alpha.27" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.