Skip to content

Commit

Permalink
Add test for existing lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
klieret committed Jun 19, 2024
1 parent 8c179cd commit 8c7e5bc
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
14 changes: 14 additions & 0 deletions problem_statements/1a.md
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
```
18 changes: 18 additions & 0 deletions tests/existing_lint_error.py
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))

0 comments on commit 8c7e5bc

Please sign in to comment.