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]
Fix unittest by excluding test data from formatting
Kilian Lieret9ba7a90c6367
diff --git a/pyproject.toml b/pyproject.tomlindex 2a56bb8a..701f742b 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -103,6 +103,7 @@ exclude = ["node_modules","site-packages","venv",+ "tests/test_data",]line-length = 120diff --git a/tests/test_data/trajectories/gpt4__swe-agent-test-repo__default_from_url__t-0.00__p-0.95__c-3.00__install-1/solution_missing_colon.py b/tests/test_data/trajectories/gpt4__swe-agent-test-repo__default_from_url__t-0.00__p-0.95__c-3.00__install-1/solution_missing_colon.pyindex 16b2cbee..ec220afd 100644--- a/tests/test_data/trajectories/gpt4__swe-agent-test-repo__default_from_url__t-0.00__p-0.95__c-3.00__install-1/solution_missing_colon.py+++ b/tests/test_data/trajectories/gpt4__swe-agent-test-repo__default_from_url__t-0.00__p-0.95__c-3.00__install-1/solution_missing_colon.py@@ -1,5 +1,4 @@#!/usr/bin/env python3-from __future__ import annotationsdef division(a: float, b: float) -> float:@@ -13,3 +12,4 @@ if __name__ == "__main__":print(division(23, 0))except ValueError as e:print(e)+