-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
I'm running `existing_lint_error.py` as follows: | ||
|
||
```python | ||
./existing_lint_error.py | ||
``` | ||
|
||
but I get the following error: | ||
|
||
``` | ||
File "/Users/fuchur/Documents/24/git_sync/swe-agent-test-repo/tests/./existing_lint_error.py", line 4 | ||
def division(a: float, b: float) -> float | ||
^ | ||
SyntaxError: invalid syntax | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env python3 | ||
|
||
"""This file is to test the behavior of the agent when there is an existing | ||
lint error in the codebase. | ||
""" | ||
|
||
|
||
def f821(): | ||
notdefined | ||
|
||
|
||
def division(a: float, b: float) -> float | ||
return a/b | ||
|
||
|
||
if __name__ == "__main__": | ||
print(division(123, 15)) | ||
|