Open sweep-nightly[bot] opened 1 year ago
tests/test_main.py
. β
Sandbox logs for
trunk fmt tests/test_main.py || return 0
1/1 β (`2`)FAILURES black tests/test_main.py .trunk/out/dQ8OU.yaml NOTICES A tool failed to run. You can open the details yaml file for more information. Checked 1 file β No issues, 1 failure Run trunk upgrade to upgrade 1 linter bash: line 1: return: can only `return' from a function or sourced script
tests/test_main.py
. β
Sandbox logs for
trunk fmt tests/test_main.py || return 0
1/1 β (`2`)FAILURES black tests/test_main.py .trunk/out/0cJKn.yaml NOTICES A tool failed to run. You can open the details yaml file for more information. Checked 1 file β No issues, 1 failure Run trunk upgrade to upgrade 1 linter bash: line 1: return: can only `return' from a function or sourced script
[X] Ran sandbox for tests/test_main.py
. β
Run `tests/test_main.py` through the sandbox.
[X] Ran sandbox for tests/test_main.py
. β
Sandbox logs for
trunk fmt tests/test_main.py || return 0
1/1 β (`2`)FAILURES black tests/test_main.py .trunk/out/0cJKn.yaml NOTICES A tool failed to run. You can open the details yaml file for more information. Checked 1 file β No issues, 1 failure Run trunk upgrade to upgrade 1 linter bash: line 1: return: can only `return' from a function or sourced script
tests/test_main.py
. β
Sandbox logs for
trunk fmt tests/test_main.py || return 0
1/1 β (`2`)FAILURES black tests/test_main.py .trunk/out/dQ8OU.yaml NOTICES A tool failed to run. You can open the details yaml file for more information. Checked 1 file β No issues, 1 failure Run trunk upgrade to upgrade 1 linter bash: line 1: return: can only `return' from a function or sourced script
Description
This pull request refactors the main.py file and adds unit tests to the test_main.py file.
Summary
Fixes #2.
π Latest improvements to Sweep:
rope
library to refactor Python! Check out Large Language Models are Bad at Refactoring Code. To have Sweep refactor your code, trysweep: Refactor <your_file>.py
!π‘ To get Sweep to edit this pull request, you can: