SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]
chore: update pre-commit hooks (#1004)
pre-commit-ci[bot]1c445312ee3f
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex 3c721b49..b5306dc5 100644--- a/.pre-commit-config.yaml+++ b/.pre-commit-config.yaml@@ -15,14 +15,14 @@ repos:- id: trailing-whitespace- repo: https://github.com/crate-ci/typos- rev: v1.29.9+ rev: v1.30.0hooks:- id: typosfiles: \.(py|md|rst|yaml|toml)exclude: pyproject.toml- repo: https://github.com/astral-sh/ruff-pre-commit- rev: v0.9.7+ rev: v0.9.9hooks:# Run the linter.- id: ruffdiff --git a/docs/usage/inspector.md b/docs/usage/inspector.mdindex 3c76512a..a590fb7a 100644--- a/docs/usage/inspector.md+++ b/docs/usage/inspector.md@@ -34,7 +34,7 @@ Here's how to navigate (this is similar to vim keybindings):* Switching between trajectories:* `H` and `L` go to the previous/next trajectory* `t` brings up a list of all trajectories. Use type-ahead search to find a specific trajectory (once your search string results in a single match, the trajectory will be opened). Press `<TAB>` to cycle through the list of matches.-* Use `h` and `l` to navigate between the steps in the trjaectory+* Use `h` and `l` to navigate between the steps in the trajectory* Use `j` and `k` to scroll down/up* By default we only show reduced information. You can press `v` to toggle the view.* Press `o` to open the logsdiff --git a/sweagent/agent/history_processors.py b/sweagent/agent/history_processors.pyindex 84d9b017..dba480ab 100644--- a/sweagent/agent/history_processors.py+++ b/sweagent/agent/history_processors.py@@ -54,7 +54,7 @@ def _set_cache_control(entry: HistoryItem) -> None:else:entry["content"][0]["cache_control"] = {"type": "ephemeral"}if entry["role"] == "tool":- # Workaruond for weird bug+ # Workaround for weird bugentry["content"][0].pop("cache_control", None)entry["cache_control"] = {"type": "ephemeral"}diff --git a/tools/review_on_submit/config.yaml b/tools/review_on_submit/config.yamlindex 082b3d65..a7cc0f86 100644--- a/tools/review_on_submit/config.yaml+++ b/tools/review_on_submit/config.yaml@@ -3,4 +3,4 @@ tools:signature: "submit"docstring: "submits the current file"# Do not actually show the -f argument to the model, only- # use it from the agent for submissiona after error+ # use it from the agent for submission after errordiff --git a/tools/review_on_submit_m/config.yaml b/tools/review_on_submit_m/config.yamlindex 082b3d65..a7cc0f86 100644--- a/tools/review_on_submit_m/config.yaml+++ b/tools/review_on_submit_m/config.yaml@@ -3,4 +3,4 @@ tools:signature: "submit"docstring: "submits the current file"# Do not actually show the -f argument to the model, only- # use it from the agent for submissiona after error+ # use it from the agent for submission after error