Skip to content

Commit fe1b37d

Browse files
author
Your Name
committed
cli-15: fixed formatting
1 parent 274d654 commit fe1b37d

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

cecli/tools/edit_text.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ class Tool(BaseTool):
5656
"type": "string",
5757
"enum": ["replace", "delete", "insert"],
5858
"description": (
59-
"The type of operation: 'replace' (replace range with text), "
60-
"'delete' (remove range), or 'insert' (insert text after start_line). "
61-
"Defaults to 'replace'."
59+
"The type of operation: 'replace' (replace range with"
60+
" text), 'delete' (remove range), or 'insert' (insert text"
61+
" after start_line). Defaults to 'replace'."
6262
),
6363
},
6464
"text": {
@@ -78,8 +78,8 @@ class Tool(BaseTool):
7878
"end_line": {
7979
"type": "string",
8080
"description": (
81-
'Hashline format for end line: "{4 char hash}" (without the '
82-
"braces)"
81+
'Hashline format for end line: "{4 char hash}" (without the'
82+
" braces)"
8383
),
8484
},
8585
},
@@ -179,8 +179,8 @@ def execute(
179179
if operation in ("replace", "delete"):
180180
if edit_start_line is None:
181181
raise ToolError(
182-
f"Edit {edit_index + 1}: 'start_line' parameter is required "
183-
f"for '{operation}' operation"
182+
f"Edit {edit_index + 1}: 'start_line' parameter is required"
183+
f" for '{operation}' operation"
184184
)
185185
if edit_end_line is None:
186186
raise ToolError(
@@ -190,8 +190,8 @@ def execute(
190190
if operation == "insert":
191191
if edit_start_line is None:
192192
raise ToolError(
193-
f"Edit {edit_index + 1}: 'start_line' parameter is required "
194-
"for 'insert' operation"
193+
f"Edit {edit_index + 1}: 'start_line' parameter is required"
194+
" for 'insert' operation"
195195
)
196196
# For insert, end_line defaults to start_line
197197
edit_end_line = edit_end_line or edit_start_line

0 commit comments

Comments
 (0)