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]
Add isolated flag to flake8 linting
Carlos E. Jimenezed72b9b58f22
diff --git a/config/commands/cursors_edit_linting.sh b/config/commands/cursors_edit_linting.shindex 4357043a..eb412cb0 100644--- a/config/commands/cursors_edit_linting.sh+++ b/config/commands/cursors_edit_linting.sh@@ -37,7 +37,7 @@ edit() {printf "%s\n" "${new_lines[@]}" >| "$CURRENT_FILE"# Run linterif [[ $CURRENT_FILE == *.py ]]; then- lint_output=$(flake8 --select=F821,F822,F831,E111,E112,E113,E999,E902 "$CURRENT_FILE" 2>&1)+ lint_output=$(flake8 --isolated --select=F821,F822,F831,E111,E112,E113,E999,E902 "$CURRENT_FILE" 2>&1)else# do nothinglint_output=""