Skip to content

Commit ba430c6

Browse files
committed
🐛 Fix typo and improve code formatting
- Correct "Ovewrite" to "Overwrite" in OurCodeBlock docstring - Enhance readability in generate_files_context function - Fix typo in sidekick.md: "commiting" to "committing" - Adjust indentation in sidekick.md for consistency
1 parent 7710319 commit ba430c6

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

aicodebot/output.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def on_retry(self, error, **kwargs):
4646

4747

4848
class OurCodeBlock(CodeBlock):
49-
"""Ovewrite the default CodeBlock, which puts a leading space in front of the code,
49+
"""Overwrite the default CodeBlock, which puts a leading space in front of the code,
5050
which is annoying for copying/pasting code"""
5151

5252
def __rich_console__(self, console, options):

aicodebot/prompts.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,9 @@ def generate_files_context(files):
288288
else:
289289
files_context += f"--- START OF FILE: {file_name} {file_info} file, modified {modification_ago} ---\n"
290290
contents = Path(file_name).read_text()
291-
contents_with_line_numbers = "\n".join(f"{i+1}: {line}" for i, line in enumerate(contents.split("\n")))
291+
contents_with_line_numbers = "\n".join(
292+
f"{i + 1}: {line}" for i, line in enumerate(contents.split("\n"))
293+
)
292294
files_context += contents_with_line_numbers
293295
files_context += f"\n--- END OF FILE: {file_name} ---\n\n"
294296

docs/sidekick.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ We'll document it here anyway, so you can see where we're going with it, ala
1313
The `sidekick` command for AICodeBot is designed to automate coding
1414
tasks based on instructions from you. This feature aims to boost developer
1515
productivity by handling various aspects of the coding process, but keeping you
16-
in charge of the process and commiting the code.
16+
in charge of the process and committing the code.
1717

1818
It's not intended to build entire applications, but instead improve existing
1919
code bases one git commit at a time.
@@ -47,7 +47,7 @@ code bases one git commit at a time.
4747
debugging and modifying the code as necessary until all tests pass.
4848

4949
8. **Code Review**: AICodeBot submits the code for review, and marks the task
50-
as complete and ready for you to commit.
50+
as complete and ready for you to commit.
5151

5252
**Future** - Reinforcement Learning and Active Learning
5353

0 commit comments

Comments
 (0)