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]
Remove .vscode; add to docs instead; make docs build again
Kilian Lieretea8062b6cc2f
diff --git a/docs/dev/contribute.md b/docs/dev/contribute.mdindex cda95dfe..67fbcab4 100644--- a/docs/dev/contribute.md+++ b/docs/dev/contribute.md@@ -55,6 +55,30 @@ Some of the tests might be slower than others. You can exclude them withpytest -m "not slow"```+You can run all tests in parallel with `pytest-xdist`:++```bash+pytest -n auto+```++If you are using VSCode, you might want to add the following two files:++<details>+<summary>`.vscode/launch.json`</summary>++```json+--8<-- "docs/dev/vscode_launch.json"+```+</details>++<details>+<summary>`.vscode/settings.json`</summary>++```json+--8<-- "docs/dev/vscode_settings.json"+```+</details>+## Tips for pull requests* If you see a lot of formatting-related merge conflicts, please see [here](formatting_conflicts.md).diff --git a/docs/dev/vscode_launch.json b/docs/dev/vscode_launch.jsonnew file mode 100644index 00000000..652e20b5--- /dev/null+++ b/docs/dev/vscode_launch.json@@ -0,0 +1,17 @@+{+ "version": "0.2.0",+ "configurations": [+ {+ "name": "Python: Debug Tests",+ "type": "debugpy",+ "request": "launch",+ "program": "${file}",+ "purpose": ["debug-test"],+ "console": "integratedTerminal",+ "env": {+ "PYTEST_ADDOPTS": "--no-cov"+ },+ "justMyCode": false+ }+ ]+}diff --git a/docs/dev/vscode_settings.json b/docs/dev/vscode_settings.jsonnew file mode 100644index 00000000..c9d6d20c--- /dev/null+++ b/docs/dev/vscode_settings.json@@ -0,0 +1,12 @@+{+ "python.testing.pytestArgs": [+ "sweagent",+ "--cov=sweagent/",+ "--cov-report=xml:cov.xml",+ "-n", "auto",+ "tests"+ ],+ "python.testing.unittestEnabled": false,+ "python.testing.pytestEnabled": true,+ "git.ignoreLimitWarning": true+}\ No newline at end of filediff --git a/docs/reference/env_utils.md b/docs/reference/env_utils.mddeleted file mode 100644index 9b573941..00000000--- a/docs/reference/env_utils.md+++ /dev/null@@ -1,5 +0,0 @@-# Environment utils--::: sweagent.environment.utils- options:- allow_inspection: false\ No newline at end of filediff --git a/docs/usage/cl_tutorial.md b/docs/usage/cl_tutorial.mdindex b5a0c981..d7cc81be 100644--- a/docs/usage/cl_tutorial.md+++ b/docs/usage/cl_tutorial.md@@ -115,9 +115,7 @@ This time, `pip install -e .` is called before SWE-agent gets to work, installinLet's take a look at the `py310_default.yaml` config file-```yaml---8<-- "config/environment_setup/py310_default.yaml"-```+REMOVED OUTDATEDHere, `install` is an arbitrary command that is run, while `python` will be the required python version.The default install command will create an [editable install][] of the python package.diff --git a/mkdocs.yml b/mkdocs.ymlindex d4dcf9de..be9218e6 100644--- a/mkdocs.yml+++ b/mkdocs.yml@@ -85,7 +85,6 @@ nav:- "Agent": "reference/agent.md"- "Models": "reference/models.md"- "Environment": "reference/env.md"- - "Environment utils": "reference/env_utils.md"- "FAQ": "faq.md"plugins:- glightbox