Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Reformatted
  • Loading branch information
osolmaz committed Nov 22, 2022
commit 1bd1b085b25ee8056f9b93a17fc4f2aba7a3cb5f
1 change: 1 addition & 0 deletions icortex/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ def bake(self, dest_path: str, format=True):
# Run black over output
if format:
import black

try:
output = black.format_str(output, mode=black.FileMode())
except:
Expand Down
2 changes: 1 addition & 1 deletion icortex/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
ICortexShell._init_icortex_shell(__main__.get_ipython())
# load_ipython_extension(get_ipython())
else:
raise Exception("IPython is not available, cannot initialize ICortex.")
raise Exception("IPython is not available, cannot initialize ICortex.")
1 change: 1 addition & 0 deletions icortex/services/echo.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from icortex.helper import escape_quotes
from icortex.services.generation_result import GenerationResult


class EchoService(ServiceBase):
name = "echo"
description = "Service used for testing"
Expand Down
5 changes: 2 additions & 3 deletions icortex/services/service_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from icortex.services.service_interaction import ServiceInteraction
from icortex.parser import lex_prompt


def is_str_repr(s: str):
quotes = ["'", '"']
return len(s) >= 2 and s[0] in quotes and s[-1] in quotes
Expand Down Expand Up @@ -159,9 +160,7 @@ def __init__(self, **kwargs: t.Dict[str, t.Any]):
required=DEFAULT_AUTO_INSTALL_PACKAGES,
help="Auto-install packages that are imported in the generated code but missing in the active Python environment.",
)
self.prompt_parser.usage = (
"%%prompt your prompt goes here [-e] [-r] [-p] ..."
)
self.prompt_parser.usage = "%%prompt your prompt goes here [-e] [-r] [-p] ..."

self.prompt_parser.description = self.description

Expand Down
1 change: 1 addition & 0 deletions icortex/var.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# "set": set,
}


class Var:
def __init__(self, arg, name, value, type, description=None):
self.arg = arg
Expand Down