eranheres / ultra_type

0 stars 0 forks source link

sweep: option selection by typing the option number #9

Closed eranheres closed 11 months ago

eranheres commented 11 months ago

The option in the menu should be selected by choosing the option number

Checklist - [X] Modify `ultra_type/controller.py` ✓ https://github.com/eranheres/ultra_type/commit/a3016dc822668be8c07351b9d63e6f6c5fc57081 - [X] Ran sandbox for `ultra_type/controller.py`. ✓ ![Flowchart](https://raw.githubusercontent.com/eranheres/ultra_type/sweep/assets/f6f2f6de03192d4bcd9cda68d0e70a9a1521eb77c3b7f98515f8c71a812c56e4_9_flowchart.svg)
sweep-mine[bot] commented 11 months ago

Here's the PR! https://github.com/eranheres/ultra_type/pull/10.

💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID: a7eeabab96)

Actions (click)

Sandbox Execution ✓

Here are the sandbox execution logs prior to making any changes:

Sandbox logs for e844ed6
poetry run pytest 1/1 ✓
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-7.4.3, pluggy-1.3.0
rootdir: /repo
collected 1 item
tests/test_controller.py .                                               [100%]
============================== 1 passed in 0.02s ===============================

Sandbox passed on the latest main, so sandbox checks will be enabled for this issue.


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/eranheres/ultra_type/blob/e844ed6e6583434e328b0d46cb21f483bf0b5132/README.md#L1-L20 https://github.com/eranheres/ultra_type/blob/e844ed6e6583434e328b0d46cb21f483bf0b5132/poetry.lock#L1-L100 https://github.com/eranheres/ultra_type/blob/e844ed6e6583434e328b0d46cb21f483bf0b5132/ultra_type/language.py#L1-L15 https://github.com/eranheres/ultra_type/blob/e844ed6e6583434e328b0d46cb21f483bf0b5132/ultra_type/controller.py#L1-L31 https://github.com/eranheres/ultra_type/blob/e844ed6e6583434e328b0d46cb21f483bf0b5132/tests/test_controller.py#L1-L2

Step 2: ⌨️ Coding

poetry run pytest 1/1 ✓
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-7.4.3, pluggy-1.3.0
rootdir: /repo
collected 1 item
tests/test_controller.py .                                               [100%]
============================== 1 passed in 0.02s ===============================


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/option-selection-by-number.


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord