Closed sweep-mine[bot] closed 11 months ago
ultra_type/view.py
. ✓
Sandbox logs for
poetry run pylint -E **/*.py
1/1 ✓(nothing was outputted)
ultra_type/view.py
. ✗
Sandbox logs for
poetry run pylint -E **/*.py
1/1 ❌ (`2`)************* Module ultra_type.view ultra_type/view.py:16:4: E0001: Parsing failed: 'unexpected indent (, line 16)' (syntax-error) ************* Module ultra_type.controller ultra_type/controller.py:2:0: E0001: Cannot import 'ultra_type.view' due to 'unexpected indent ( , line 16)' (syntax-error) ultra_type/controller.py:2:0: E0611: No name 'view' in module 'ultra_type' (no-name-in-module) ************* Module ultra_type.main ultra_type/main.py:2:0: E0001: Cannot import 'ultra_type.view' due to 'unexpected indent ( , line 16)' (syntax-error) ultra_type/main.py:2:0: E0611: No name 'view' in module 'ultra_type' (no-name-in-module)
ultra_type/view.py
. ✗
Sandbox logs for
poetry run pylint -E **/*.py
1/1 ❌ (`2`)************* Module ultra_type.view ultra_type/view.py:3:15: E1101: Instance of 'View' has no 'stdscr' member (no-member) ultra_type/view.py:6:8: E1101: Instance of 'View' has no 'stdscr' member (no-member) ultra_type/view.py:7:8: E1101: Instance of 'View' has no 'stdscr' member (no-member) ultra_type/view.py:8:15: E1101: Instance of 'View' has no 'stdscr' member (no-member)
ultra_type/view.py
. ✓
Sandbox logs for
poetry run pylint -E **/*.py
1/1 ✓(nothing was outputted)
ultra_type/view.py
. ✓
Sandbox logs for
poetry run pylint -E **/*.py
1/1 ✓(nothing was outputted)
ultra_type/controller.py
. ✓
Sandbox logs for
poetry run pylint -E **/*.py
1/1 ✓(nothing was outputted)
Description
This pull request integrates the curses library to enhance the terminal UI for the ultra_type application. It updates the controller and view files to utilize the curses library for improved user interaction.
Summary
ultra_type/controller.py
: Updated therun
method to useself.view.display_word
instead ofprint
for menu and description display.ultra_type/view.py
: Integrated curses library for user input and display, includingget_user_input
,get_language_choice
,display_word
, anddisplay_stats
methods.Fixes #28.
🎉 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: