Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Propose fix some typos and ignore emacs backup files (#11701)

John Eismeier967e9e1891e0
diff --git a/.gitignore b/.gitignore
index 97236ca41c..6fc0934a02 100644
--- a/.gitignore
+++ b/.gitignore
@@ -185,6 +185,9 @@ cython_debug/
.repomix
repomix-output.txt
+# Emacs backup
+*~
+
# evaluation
evaluation/evaluation_outputs
evaluation/outputs
diff --git a/evaluation/benchmarks/multi_swe_bench/README.md b/evaluation/benchmarks/multi_swe_bench/README.md
index 88843ca9ce..58f2221e9f 100644
--- a/evaluation/benchmarks/multi_swe_bench/README.md
+++ b/evaluation/benchmarks/multi_swe_bench/README.md
@@ -15,7 +15,7 @@ python evaluation/benchmarks/multi_swe_bench/scripts/data/data_change.py
## Docker image download
-Please download the multi-swe-bench dokcer images from [here](https://github.com/multi-swe-bench/multi-swe-bench?tab=readme-ov-file#run-evaluation).
+Please download the multi-swe-bench docker images from [here](https://github.com/multi-swe-bench/multi-swe-bench?tab=readme-ov-file#run-evaluation).
## Generate patch
@@ -47,7 +47,7 @@ For debugging purposes, you can set `export EVAL_SKIP_MAXIMUM_RETRIES_EXCEEDED=t
The results will be generated in evaluation/evaluation_outputs/outputs/XXX/CodeActAgent/YYY/output.jsonl, you can refer to the [example](examples/output.jsonl).
-## Runing evaluation
+## Running evaluation
First, install [multi-swe-bench](https://github.com/multi-swe-bench/multi-swe-bench).
diff --git a/frontend/__tests__/components/image-preview.test.tsx b/frontend/__tests__/components/image-preview.test.tsx
index 39d2f089fb..7e40d4b925 100644
--- a/frontend/__tests__/components/image-preview.test.tsx
+++ b/frontend/__tests__/components/image-preview.test.tsx
@@ -30,7 +30,7 @@ describe("ImagePreview", () => {
expect(onRemoveMock).toHaveBeenCalledOnce();
});
- it("shoud not display the close button when onRemove is not provided", () => {
+ it("should not display the close button when onRemove is not provided", () => {
render(<ImagePreview src="https://example.com/image.jpg" />);
expect(screen.queryByRole("button")).not.toBeInTheDocument();
});
diff --git a/openhands/agenthub/codeact_agent/function_calling.py b/openhands/agenthub/codeact_agent/function_calling.py
index 34875645bd..763b75ee53 100644
--- a/openhands/agenthub/codeact_agent/function_calling.py
+++ b/openhands/agenthub/codeact_agent/function_calling.py
@@ -286,7 +286,7 @@ def response_to_actions(
f'Unexpected task format in task_list: {type(task)} - {task}'
)
raise FunctionCallValidationError(
- f'Unexpected task format in task_list: {type(task)}. Each task shoud be a dictionary.'
+ f'Unexpected task format in task_list: {type(task)}. Each task should be a dictionary.'
)
normalized_task_list.append(normalized_task)