eranheres / ultra_type

0 stars 0 forks source link

Sweep: fix the following issues #40

Open eranheres opened 11 months ago

eranheres commented 11 months ago

./tests/test_language.py:28:5: E301 expected 1 blank line, found 0 ./tests/test_language.py:34:1: E302 expected 2 blank lines, found 1 ./tests/test_language.py:40:1: W293 blank line contains whitespace ./tests/test_language.py:43:1: W293 blank line contains whitespace ./tests/test_language.py:45:5: E303 too many blank lines (3) ./tests/test_language.py:57:1: E302 expected 2 blank lines, found 1 ./tests/test_language.py:76:1: E305 expected 2 blank lines after class or function definition, found 1

Checklist - [X] Modify `tests/test_language.py` ✓ https://github.com/eranheres/ultra_type/commit/15fef16cb7d30c1444de6749046a778696bb4020 ![Flowchart](https://raw.githubusercontent.com/eranheres/ultra_type/sweep/assets/22db268663fadbf555be7129145dbedd184671b815329bff8bbd273d8af89e63_40_flowchart.svg)
sweep-mine[bot] commented 11 months ago

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

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

Actions (click)

Sandbox Execution X

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

Sandbox logs for e7b692a
. ./run_setup.sh 1/2 ✓
Requirement already satisfied: poetry in /usr/local/lib/python3.10/dist-packages (1.7.1)
Requirement already satisfied: shellingham<2.0,>=1.5 in /usr/local/lib/python3.10/dist-packages (from poetry) (1.5.4)
Requirement already satisfied: trove-classifiers>=2022.5.19 in /usr/local/lib/python3.10/dist-packages (from poetry) (2023.11.22)
Requirement already satisfied: dulwich<0.22.0,>=0.21.2 in /usr/local/lib/python3.10/dist-packages (from poetry) (0.21.6)
Requirement already satisfied: requests-toolbelt<2,>=0.9.1 in /usr/local/lib/python3.10/dist-packages (from poetry) (1.0.0)
Requirement already satisfied: crashtest<0.5.0,>=0.4.1 in /usr/local/lib/python3.10/dist-packages (from poetry) (0.4.1)
Requirement already satisfied: poetry-core==1.8.1 in /usr/local/lib/python3.10/dist-packages (from poetry) (1.8.1)
Requirement already satisfied: build<2.0.0,>=1.0.3 in /usr/local/lib/python3.10/dist-packages (from poetry) (1.0.3)
Requirement already satisfied: installer<0.8.0,>=0.7.0 in /usr/local/lib/python3.10/dist-packages (from poetry) (0.7.0)
Requirement already satisfied: fastjsonschema<3.0.0,>=2.18.0 in /usr/local/lib/python3.10/dist-packages (from poetry) (2.19.0)
Requirement already satisfied: requests<3.0,>=2.26 in /usr/local/lib/python3.10/dist-packages (from poetry) (2.31.0)
Requirement already satisfied: virtualenv<21.0.0,>=20.23.0 in /usr/local/lib/python3.10/dist-packages (from poetry) (20.24.7)
Requirement already satisfied: tomlkit<1.0.0,>=0.11.4 in /usr/local/lib/python3.10/dist-packages (from poetry) (0.12.3)
Requirement already satisfied: pexpect<5.0.0,>=4.7.0 in /usr/local/lib/python3.10/dist-packages (from poetry) (4.9.0)
Requirement already satisfied: keyring<25.0.0,>=24.0.0 in /usr/local/lib/python3.10/dist-packages (from poetry) (24.3.0)
Requirement already satisfied: tomli<3.0.0,>=2.0.1 in /usr/local/lib/python3.10/dist-packages (from poetry) (2.0.1)
Requirement already satisfied: cachecontrol[filecache]<0.14.0,>=0.13.0 in /usr/local/lib/python3.10/dist-packages (from poetry) (0.13.1)
Requirement already satisfied: pyproject-hooks<2.0.0,>=1.0.0 in /usr/local/lib/python3.10/dist-packages (from poetry) (1.0.0)
Requirement already satisfied: poetry-plugin-export<2.0.0,>=1.6.0 in /usr/local/lib/python3.10/dist-packages (from poetry) (1.6.0)
Requirement already satisfied: pkginfo<2.0.0,>=1.9.4 in /usr/local/lib/python3.10/dist-packages (from poetry) (1.9.6)
Requirement already satisfied: platformdirs<4.0.0,>=3.0.0 in /usr/local/lib/python3.10/dist-packages (from poetry) (3.11.0)
Requirement already satisfied: cleo<3.0.0,>=2.1.0 in /usr/local/lib/python3.10/dist-packages (from poetry) (2.1.0)
Requirement already satisfied: packaging>=20.5 in /usr/local/lib/python3.10/dist-packages (from poetry) (23.2)
Requirement already satisfied: msgpack>=0.5.2 in /usr/local/lib/python3.10/dist-packages (from cachecontrol[filecache]<0.14.0,>=0.13.0->poetry) (1.0.7)
Requirement already satisfied: filelock>=3.8.0 in /usr/local/lib/python3.10/dist-packages (from cachecontrol[filecache]<0.14.0,>=0.13.0->poetry) (3.13.1)
Requirement already satisfied: rapidfuzz<4.0.0,>=3.0.0 in /usr/local/lib/python3.10/dist-packages (from cleo<3.0.0,>=2.1.0->poetry) (3.5.2)
Requirement already satisfied: urllib3>=1.25 in /usr/local/lib/python3.10/dist-packages (from dulwich<0.22.0,>=0.21.2->poetry) (2.1.0)
Requirement already satisfied: jeepney>=0.4.2 in /usr/local/lib/python3.10/dist-packages (from keyring<25.0.0,>=24.0.0->poetry) (0.8.0)
Requirement already satisfied: jaraco.classes in /usr/local/lib/python3.10/dist-packages (from keyring<25.0.0,>=24.0.0->poetry) (3.3.0)
Requirement already satisfied: SecretStorage>=3.2 in /usr/local/lib/python3.10/dist-packages (from keyring<25.0.0,>=24.0.0->poetry) (3.3.3)
Requirement already satisfied: importlib-metadata>=4.11.4 in /usr/local/lib/python3.10/dist-packages (from keyring<25.0.0,>=24.0.0->poetry) (6.8.0)
Requirement already satisfied: ptyprocess>=0.5 in /usr/local/lib/python3.10/dist-packages (from pexpect<5.0.0,>=4.7.0->poetry) (0.7.0)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests<3.0,>=2.26->poetry) (3.3.2)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests<3.0,>=2.26->poetry) (2023.11.17)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests<3.0,>=2.26->poetry) (3.6)
Requirement already satisfied: distlib<1,>=0.3.7 in /usr/local/lib/python3.10/dist-packages (from virtualenv<21.0.0,>=20.23.0->poetry) (0.3.7)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.10/dist-packages (from importlib-metadata>=4.11.4->keyring<25.0.0,>=24.0.0->poetry) (3.17.0)
Requirement already satisfied: cryptography>=2.0 in /usr/local/lib/python3.10/dist-packages (from SecretStorage>=3.2->keyring<25.0.0,>=24.0.0->poetry) (41.0.7)
Requirement already satisfied: more-itertools in /usr/local/lib/python3.10/dist-packages (from jaraco.classes->keyring<25.0.0,>=24.0.0->poetry) (10.1.0)
Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.10/dist-packages (from cryptography>=2.0->SecretStorage>=3.2->keyring<25.0.0,>=24.0.0->poetry) (1.16.0)
Requirement already satisfied: pycparser in /usr/local/lib/python3.10/dist-packages (from cffi>=1.12->cryptography>=2.0->SecretStorage>=3.2->keyring<25.0.0,>=24.0.0->poetry) (2.21)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Creating virtualenv ultra-type-gW_DSdP6-py3.10 in /root/.cache/pypoetry/virtualenvs
Updating dependencies
Resolving dependencies...
Package operations: 14 installs, 0 updates, 0 removals
  • Installing typing-extensions (4.8.0)
  • Installing astroid (3.0.1)
  • Installing dill (0.3.7)
  • Installing exceptiongroup (1.2.0)
  • Installing iniconfig (2.0.0)
  • Installing isort (5.12.0)
  • Installing mccabe (0.7.0)
  • Installing packaging (23.2)
  • Installing platformdirs (4.0.0)
  • Installing pluggy (1.3.0)
  • Installing tomli (2.0.1)
  • Installing tomlkit (0.12.3)
  • Installing pylint (3.0.2)
  • Installing pytest (7.4.3)
Writing lock file
Installing the current project: ultra-type (0.1.0)
Collecting getch
  Downloading getch-1.0.tar.gz (1.3 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: getch
  Building wheel for getch (setup.py): started
  Building wheel for getch (setup.py): finished with status 'done'
  Created wheel for getch: filename=getch-1.0-cp310-cp310-linux_x86_64.whl size=9793 sha256=8b1d26e2ac2cc8e671f78cd96decd32e1f35e0a86e2cb2912de8df5157405b12
  Stored in directory: /root/.cache/pip/wheels/ac/c4/98/3509ed1eea91cd925ecf8601b085d8faf13c9d5269653f4325
Successfully built getch
Installing collected packages: getch
Successfully installed getch-1.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
./run_tests.sh tests/test_language.py 2/2 ❌ (`1`)
./run_tests.sh: line 8: pylint: command not found

Sandbox failed, so all sandbox checks will be disabled 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/e7b692a6a1028cc19bd086508b3e553f18ed0f63/tests/test_language.py#L33-L76 https://github.com/eranheres/ultra_type/blob/e7b692a6a1028cc19bd086508b3e553f18ed0f63/tests/test_language.py#L1-L33 https://github.com/eranheres/ultra_type/blob/e7b692a6a1028cc19bd086508b3e553f18ed0f63/README.md#L15-L20 https://github.com/eranheres/ultra_type/blob/e7b692a6a1028cc19bd086508b3e553f18ed0f63/tests/test_model.py#L60-L138 https://github.com/eranheres/ultra_type/blob/e7b692a6a1028cc19bd086508b3e553f18ed0f63/tests/test_model.py#L1-L31 https://github.com/eranheres/ultra_type/blob/e7b692a6a1028cc19bd086508b3e553f18ed0f63/tests/test_controller.py#L1-L2 https://github.com/eranheres/ultra_type/blob/e7b692a6a1028cc19bd086508b3e553f18ed0f63/tests/test_statistics.py#L1-L18

Step 2: ⌨️ Coding


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/test_language_style.


🎉 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