wwzeng1 / touch_typing_practice

0 stars 0 forks source link

Refactor main.py and add unit tests #4

Open sweep-nightly[bot] opened 1 year ago

sweep-nightly[bot] commented 1 year ago

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:


πŸ’‘ To get Sweep to edit this pull request, you can:

sweep-nightly[bot] commented 1 year ago

Sandbox Executions

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

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

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

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

sweep-nightly[bot] commented 1 year ago

Apply Sweep Rules to your PR?