diff --git a/problem_statements/1a.md b/problem_statements/1a.md new file mode 100644 index 0000000..4da0256 --- /dev/null +++ b/problem_statements/1a.md @@ -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 +``` diff --git a/tests/existing_lint_error.py b/tests/existing_lint_error.py new file mode 100755 index 0000000..d4d7499 --- /dev/null +++ b/tests/existing_lint_error.py @@ -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)) +