Skip to content

Commit

Permalink
Whitespace in line with flake8y
Browse files Browse the repository at this point in the history
  • Loading branch information
dave1010 committed Dec 3, 2023
1 parent 7c451c8 commit c551606
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion clipea/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Clipea application
📎🟢 Like Clippy but for the CLI. A blazing fast AI helper for your command line
📎🟢 Like Clippy but for the CLI. A blazing fast AI helper for your command line
"""
import os
from clipea import utils, cli
Expand Down
2 changes: 1 addition & 1 deletion clipea/clipea_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def process_command():
current_command = command[2:new_line_pos]
else:
current_command = command[2:]
command = command[new_line_pos + 1 :]
command = command[new_line_pos + 1:]

if output_file is not None:
buffer += current_command + os.linesep
Expand Down
4 changes: 2 additions & 2 deletions clipea/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def setup():
)
else:
print("An OpenAI key is already set-up, proceed if you want to change it.")
llm.cli.keys_set()
llm.cli.keys_set()


def clipea_execute_prompt(user_prompt: str):
Expand All @@ -43,7 +43,7 @@ def clipea_execute_prompt(user_prompt: str):
from clipea import clipea_llm
from llm import Model, Response

llm_name:str = ''
llm_name: str = ''
if user_prompt.startswith('4 '):
user_prompt = user_prompt[2:]
llm_name = 'gpt-4'
Expand Down
1 change: 1 addition & 0 deletions clipea/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def anystr_force_str(value: AnyStr) -> str:
"""
return value.decode("utf-8") if isinstance(value, bytes) else value


def read_file(file_path: str) -> str:
"""Reads a file
Expand Down

0 comments on commit c551606

Please sign in to comment.