Skip to content

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]

Doc: Add notes about merge-conflicts after formatting changes (#439)

Kilian Lieret2a119df2ba46
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 862a038c..8fa8fc5a 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -2,6 +2,11 @@
Thanks for contributing a pull request!
-->
+> [!NOTE]
+> IF YOU SEE A LOT OF FORMATTING RELATED MERGE CONFLICTS
+> PLEASE MAKE SURE THAT YOU ARE USING OUR CODE FORMATTER.
+> Please see [our development guide](https://princeton-nlp.github.io/SWE-agent/dev/contribute/).
+
#### Reference Issues/PRs
<!--
Example: "Fixes #1234", "See also #3456"
@@ -16,7 +21,3 @@ Please include a brief explanation of how your solution
fixes the tagged issue(s), along with what files / entities have
been modified for this fix.
-->
-
-#### Any other comments?
-
-🧡 Thanks for contributing!
diff --git a/docs/dev/contribute.md b/docs/dev/contribute.md
index 01df9cfa..fe8d435c 100644
--- a/docs/dev/contribute.md
+++ b/docs/dev/contribute.md
@@ -51,6 +51,8 @@ pytest -
## Tips for pull requests
+* If you see a lot of formatting-related merge conflicts, please make sure that you have `pre-commit` installed.
+ To run it over all files, please run `pre-commit run --all-files`.
* Please open separate PRs for separate issues. This makes it easier to incorporate part of your changes.
* It might be good to open an issue and discuss first before investing time on an experimental feature.
* When changing the behavior of the agent, we need to have some indication that it actually improves the success rate of SWE-agent.