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]

Add isolated flag to flake8 linting

Carlos E. Jimenez2ab51e06e8e0
diff --git a/config/commands/edit_linting.sh b/config/commands/edit_linting.sh
index 7c4294bb..211ecc49 100644
--- a/config/commands/edit_linting.sh
+++ b/config/commands/edit_linting.sh
@@ -69,7 +69,7 @@ edit() {
# Run linter
if [[ $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 nothing
lint_output=""