mrenner-ML / codeas-fork

MIT License
0 stars 0 forks source link

sweep: change the default instantiation of codebase #2

Open mrenner-ML opened 12 months ago

mrenner-ML commented 12 months ago

Inside assistant.py, change the default language instantiation of Codebase (language=python) to take place inside the codebase.py file.

Checklist - [X] Modify `src/codeas/assistant.py` ✓ https://github.com/mrenner-ML/codeas-fork/commit/70d5b62188122903b149ec84e66b495076b36060 - [X] Check `src/codeas/assistant.py` ✓ - [X] Modify `src/codeas/codebase.py` ✓ https://github.com/mrenner-ML/codeas-fork/commit/824078cafa73a9baba00884c8fa308083b1cfd79 - [X] Check `src/codeas/codebase.py` ✓ ![Flowchart](http://24.199.78.105:8082/public/5f7e2fa8b4f31578c3ccf6f0186a48d9d787150c8949633f83cb1eebeba9d291_2_flowchart.svg)
sweep-ai[bot] commented 12 months ago

Here's the PR! https://github.com/mrenner-ML/codeas-fork/pull/3.

Sweep Basic Tier: I'm using GPT-4. You have 4 GPT-4 tickets left for the month and 3 for the day. (tracking ID: 3598f65efd)

For more GPT-4 tickets, visit our payment portal. For a one week free trial, try Sweep Pro (unlimited GPT-4 tickets).

Actions (click)

Sandbox Execution ✓

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

Sandbox logs for e9bf5bc
pre-commit install 1/7 ✓
pre-commit installed at .git/hooks/pre-commit
pip install -r requirements.txt 2/7 ✓
Collecting langchain>=0.0.286
  Downloading langchain-0.0.335-py3-none-any.whl (2.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 21.5 MB/s eta 0:00:00
Collecting openai>=0.28.0
  Downloading openai-1.2.3-py3-none-any.whl (220 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 220.3/220.3 KB 31.7 MB/s eta 0:00:00
Collecting pydantic>=2.3
  Downloading pydantic-2.4.2-py3-none-any.whl (395 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 395.8/395.8 KB 38.0 MB/s eta 0:00:00
Requirement already satisfied: pyyaml>=6.0.1 in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 4)) (6.0.1)
Collecting streamlit>=1.27.0
  Downloading streamlit-1.28.1-py2.py3-none-any.whl (8.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.4/8.4 MB 36.2 MB/s eta 0:00:00
Collecting python-dotenv>=1.0.0
  Downloading python_dotenv-1.0.0-py3-none-any.whl (19 kB)
Collecting pyperclip>=1.8.2
  Downloading pyperclip-1.8.2.tar.gz (20 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting tiktoken>=0.5.1
  Downloading tiktoken-0.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 71.6 MB/s eta 0:00:00
Collecting typer[all]>=0.9.0
  Downloading typer-0.9.0-py3-none-any.whl (45 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45.9/45.9 KB 7.0 MB/s eta 0:00:00
Collecting termcolor>=2.3.0
  Downloading termcolor-2.3.0-py3-none-any.whl (6.9 kB)
Requirement already satisfied: black in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 11)) (23.9.1)
Collecting tree_sitter==0.20.2
  Downloading tree_sitter-0.20.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (484 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 484.3/484.3 KB 52.4 MB/s eta 0:00:00
Collecting async-timeout<5.0.0,>=4.0.0
  Downloading async_timeout-4.0.3-py3-none-any.whl (5.7 kB)
Requirement already satisfied: requests<3,>=2 in /usr/local/lib/python3.10/dist-packages (from langchain>=0.0.286->-r requirements.txt (line 1)) (2.31.0)
Collecting aiohttp<4.0.0,>=3.8.3
  Downloading aiohttp-3.8.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 55.7 MB/s eta 0:00:00
Collecting tenacity<9.0.0,>=8.1.0
  Downloading tenacity-8.2.3-py3-none-any.whl (24 kB)
Collecting numpy<2,>=1
  Downloading numpy-1.26.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.2/18.2 MB 74.8 MB/s eta 0:00:00
Collecting dataclasses-json<0.7,>=0.5.7
  Downloading dataclasses_json-0.6.2-py3-none-any.whl (28 kB)
Collecting SQLAlchemy<3,>=1.4
  Downloading SQLAlchemy-2.0.23-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 102.6 MB/s eta 0:00:00
Collecting anyio<4.0
  Downloading anyio-3.7.1-py3-none-any.whl (80 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 80.9/80.9 KB 14.9 MB/s eta 0:00:00
Collecting jsonpatch<2.0,>=1.33
  Downloading jsonpatch-1.33-py2.py3-none-any.whl (12 kB)
Collecting langsmith<0.1.0,>=0.0.63
  Downloading langsmith-0.0.63-py3-none-any.whl (45 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45.3/45.3 KB 7.1 MB/s eta 0:00:00
Collecting distro<2,>=1.7.0
  Downloading distro-1.8.0-py3-none-any.whl (20 kB)
Requirement already satisfied: typing-extensions<5,>=4.5 in /usr/local/lib/python3.10/dist-packages (from openai>=0.28.0->-r requirements.txt (line 2)) (4.7.1)
Collecting httpx<1,>=0.23.0
  Downloading httpx-0.25.1-py3-none-any.whl (75 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 75.0/75.0 KB 8.9 MB/s eta 0:00:00
Collecting tqdm>4
  Downloading tqdm-4.66.1-py3-none-any.whl (78 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.3/78.3 KB 12.7 MB/s eta 0:00:00
Collecting pydantic-core==2.10.1
  Downloading pydantic_core-2.10.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 94.0 MB/s eta 0:00:00
Collecting annotated-types>=0.4.0
  Downloading annotated_types-0.6.0-py3-none-any.whl (12 kB)
Collecting rich<14,>=10.14.0
  Downloading rich-13.6.0-py3-none-any.whl (239 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 239.8/239.8 KB 29.3 MB/s eta 0:00:00
Collecting toml<2,>=0.10.1
  Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting gitpython!=3.1.19,<4,>=3.0.7
  Downloading GitPython-3.1.40-py3-none-any.whl (190 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 190.6/190.6 KB 27.6 MB/s eta 0:00:00
Requirement already satisfied: importlib-metadata<7,>=1.4 in /usr/local/lib/python3.10/dist-packages (from streamlit>=1.27.0->-r requirements.txt (line 5)) (6.8.0)
Collecting pandas<3,>=1.3.0
  Downloading pandas-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.3/12.3 MB 85.2 MB/s eta 0:00:00
Collecting watchdog>=2.1.5
  Downloading watchdog-3.0.0-py3-none-manylinux2014_x86_64.whl (82 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 82.1/82.1 KB 14.4 MB/s eta 0:00:00
Collecting blinker<2,>=1.0.0
  Downloading blinker-1.7.0-py3-none-any.whl (13 kB)
Collecting protobuf<5,>=3.20
  Downloading protobuf-4.25.0-cp37-abi3-manylinux2014_x86_64.whl (294 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 294.4/294.4 KB 37.0 MB/s eta 0:00:00
Collecting tzlocal<6,>=1.1
  Downloading tzlocal-5.2-py3-none-any.whl (17 kB)
Collecting cachetools<6,>=4.0
  Downloading cachetools-5.3.2-py3-none-any.whl (9.3 kB)
Collecting pillow<11,>=7.1.0
  Downloading Pillow-10.1.0-cp310-cp310-manylinux_2_28_x86_64.whl (3.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.6/3.6 MB 76.7 MB/s eta 0:00:00
Requirement already satisfied: packaging<24,>=16.8 in /usr/local/lib/python3.10/dist-packages (from streamlit>=1.27.0->-r requirements.txt (line 5)) (23.1)
Collecting validators<1,>=0.2
  Downloading validators-0.22.0-py3-none-any.whl (26 kB)
Collecting tornado<7,>=6.0.3
  Downloading tornado-6.3.3-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (427 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 427.7/427.7 KB 31.2 MB/s eta 0:00:00
Collecting python-dateutil<3,>=2.7.3
  Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 KB 34.4 MB/s eta 0:00:00
Collecting altair<6,>=4.0
  Downloading altair-5.1.2-py3-none-any.whl (516 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 516.2/516.2 KB 47.6 MB/s eta 0:00:00
Requirement already satisfied: click<9,>=7.0 in /usr/local/lib/python3.10/dist-packages (from streamlit>=1.27.0->-r requirements.txt (line 5)) (8.1.7)
Collecting pydeck<1,>=0.8.0b4
  Downloading pydeck-0.8.1b0-py2.py3-none-any.whl (4.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.8/4.8 MB 65.2 MB/s eta 0:00:00
Collecting pyarrow>=6.0
  Downloading pyarrow-14.0.1-cp310-cp310-manylinux_2_28_x86_64.whl (38.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 38.0/38.0 MB 45.9 MB/s eta 0:00:00
Collecting regex>=2022.1.18
  Downloading regex-2023.10.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (773 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 773.9/773.9 KB 69.3 MB/s eta 0:00:00
Requirement already satisfied: shellingham<2.0.0,>=1.3.0 in /usr/local/lib/python3.10/dist-packages (from typer[all]>=0.9.0->-r requirements.txt (line 9)) (1.5.3)
Collecting colorama<0.5.0,>=0.4.3
  Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Requirement already satisfied: tomli>=1.1.0 in /usr/local/lib/python3.10/dist-packages (from black->-r requirements.txt (line 11)) (2.0.1)
Requirement already satisfied: pathspec>=0.9.0 in /usr/local/lib/python3.10/dist-packages (from black->-r requirements.txt (line 11)) (0.11.2)
Requirement already satisfied: mypy-extensions>=0.4.3 in /usr/local/lib/python3.10/dist-packages (from black->-r requirements.txt (line 11)) (1.0.0)
Requirement already satisfied: platformdirs>=2 in /usr/local/lib/python3.10/dist-packages (from black->-r requirements.txt (line 11)) (3.10.0)
Collecting aiosignal>=1.1.2
  Downloading aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting yarl<2.0,>=1.0
  Downloading yarl-1.9.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (268 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 268.8/268.8 KB 39.0 MB/s eta 0:00:00
Collecting frozenlist>=1.1.1
  Downloading frozenlist-1.4.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (225 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 225.7/225.7 KB 39.3 MB/s eta 0:00:00
Collecting multidict<7.0,>=4.5
  Downloading multidict-6.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (114 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 114.5/114.5 KB 19.0 MB/s eta 0:00:00
Requirement already satisfied: charset-normalizer<4.0,>=2.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp<4.0.0,>=3.8.3->langchain>=0.0.286->-r requirements.txt (line 1)) (3.3.0)
Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp<4.0.0,>=3.8.3->langchain>=0.0.286->-r requirements.txt (line 1)) (23.1.0)
Collecting toolz
  Downloading toolz-0.12.0-py3-none-any.whl (55 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.8/55.8 KB 6.5 MB/s eta 0:00:00
Requirement already satisfied: jsonschema>=3.0 in /usr/local/lib/python3.10/dist-packages (from altair<6,>=4.0->streamlit>=1.27.0->-r requirements.txt (line 5)) (4.17.3)
Collecting jinja2
  Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 KB 21.5 MB/s eta 0:00:00
Collecting sniffio>=1.1
  Downloading sniffio-1.3.0-py3-none-any.whl (10 kB)
Requirement already satisfied: idna>=2.8 in /usr/local/lib/python3.10/dist-packages (from anyio<4.0->langchain>=0.0.286->-r requirements.txt (line 1)) (3.4)
Collecting exceptiongroup
  Downloading exceptiongroup-1.1.3-py3-none-any.whl (14 kB)
Collecting marshmallow<4.0.0,>=3.18.0
  Downloading marshmallow-3.20.1-py3-none-any.whl (49 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 49.4/49.4 KB 7.4 MB/s eta 0:00:00
Collecting typing-inspect<1,>=0.4.0
  Downloading typing_inspect-0.9.0-py3-none-any.whl (8.8 kB)
Collecting gitdb<5,>=4.0.1
  Downloading gitdb-4.0.11-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.7/62.7 KB 9.7 MB/s eta 0:00:00
Collecting httpcore
  Downloading httpcore-1.0.2-py3-none-any.whl (76 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 76.9/76.9 KB 15.7 MB/s eta 0:00:00
Requirement already satisfied: certifi in /usr/local/lib/python3.10/dist-packages (from httpx<1,>=0.23.0->openai>=0.28.0->-r requirements.txt (line 2)) (2023.7.22)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.10/dist-packages (from importlib-metadata<7,>=1.4->streamlit>=1.27.0->-r requirements.txt (line 5)) (3.17.0)
Collecting jsonpointer>=1.9
  Downloading jsonpointer-2.4-py2.py3-none-any.whl (7.8 kB)
Collecting pytz>=2020.1
  Downloading pytz-2023.3.post1-py2.py3-none-any.whl (502 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 502.5/502.5 KB 40.7 MB/s eta 0:00:00
Collecting tzdata>=2022.1
  Downloading tzdata-2023.3-py2.py3-none-any.whl (341 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 341.8/341.8 KB 33.5 MB/s eta 0:00:00
Collecting six>=1.5
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests<3,>=2->langchain>=0.0.286->-r requirements.txt (line 1)) (2.0.6)
Collecting pygments<3.0.0,>=2.13.0
  Downloading Pygments-2.16.1-py3-none-any.whl (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 64.5 MB/s eta 0:00:00
Collecting markdown-it-py>=2.2.0
  Downloading markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 87.5/87.5 KB 12.5 MB/s eta 0:00:00
Collecting greenlet!=0.4.17
  Downloading greenlet-3.0.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (613 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 613.2/613.2 KB 43.8 MB/s eta 0:00:00
Collecting smmap<6,>=3.0.1
  Downloading smmap-5.0.1-py3-none-any.whl (24 kB)
Collecting MarkupSafe>=2.0
  Downloading MarkupSafe-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in /usr/local/lib/python3.10/dist-packages (from jsonschema>=3.0->altair<6,>=4.0->streamlit>=1.27.0->-r requirements.txt (line 5)) (0.19.3)
Collecting mdurl~=0.1
  Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Collecting h11<0.15,>=0.13
  Downloading h11-0.14.0-py3-none-any.whl (58 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.3/58.3 KB 6.2 MB/s eta 0:00:00
Building wheels for collected packages: pyperclip
  Building wheel for pyperclip (setup.py): started
  Building wheel for pyperclip (setup.py): finished with status 'done'
  Created wheel for pyperclip: filename=pyperclip-1.8.2-py3-none-any.whl size=11137 sha256=ff7628581a1e595c11a0782d21c1787dd172b95166f73987aa64cd023a1cbb2d
  Stored in directory: /root/.cache/pip/wheels/04/24/fe/140a94a7f1036003ede94579e6b4227fe96c840c6f4dcbe307
Successfully built pyperclip
Installing collected packages: pytz, pyperclip, watchdog, validators, tzlocal, tzdata, typing-inspect, typer, tree_sitter, tqdm, tornado, toolz, toml, termcolor, tenacity, sniffio, smmap, six, regex, python-dotenv, pygments, pydantic-core, protobuf, pillow, numpy, multidict, mdurl, marshmallow, MarkupSafe, jsonpointer, h11, greenlet, frozenlist, exceptiongroup, distro, colorama, cachetools, blinker, async-timeout, annotated-types, yarl, tiktoken, SQLAlchemy, python-dateutil, pydantic, pyarrow, markdown-it-py, jsonpatch, jinja2, httpcore, gitdb, dataclasses-json, anyio, aiosignal, rich, pydeck, pandas, langsmith, httpx, gitpython, aiohttp, openai, langchain, altair, streamlit
Successfully installed MarkupSafe-2.1.3 SQLAlchemy-2.0.23 aiohttp-3.8.6 aiosignal-1.3.1 altair-5.1.2 annotated-types-0.6.0 anyio-3.7.1 async-timeout-4.0.3 blinker-1.7.0 cachetools-5.3.2 colorama-0.4.6 dataclasses-json-0.6.2 distro-1.8.0 exceptiongroup-1.1.3 frozenlist-1.4.0 gitdb-4.0.11 gitpython-3.1.40 greenlet-3.0.1 h11-0.14.0 httpcore-1.0.2 httpx-0.25.1 jinja2-3.1.2 jsonpatch-1.33 jsonpointer-2.4 langchain-0.0.335 langsmith-0.0.63 markdown-it-py-3.0.0 marshmallow-3.20.1 mdurl-0.1.2 multidict-6.0.4 numpy-1.26.2 openai-1.2.3 pandas-2.1.3 pillow-10.1.0 protobuf-4.25.0 pyarrow-14.0.1 pydantic-2.4.2 pydantic-core-2.10.1 pydeck-0.8.1b0 pygments-2.16.1 pyperclip-1.8.2 python-dateutil-2.8.2 python-dotenv-1.0.0 pytz-2023.3.post1 regex-2023.10.3 rich-13.6.0 six-1.16.0 smmap-5.0.1 sniffio-1.3.0 streamlit-1.28.1 tenacity-8.2.3 termcolor-2.3.0 tiktoken-0.5.1 toml-0.10.2 toolz-0.12.0 tornado-6.3.3 tqdm-4.66.1 tree_sitter-0.20.2 typer-0.9.0 typing-inspect-0.9.0 tzdata-2023.3 tzlocal-5.2 validators-0.22.0 watchdog-3.0.0 yarl-1.9.2
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
trunk init 3/7 ✓
⡿ Downloading Trunk 1.17.2...
⡿ Downloading Trunk 1.17.2...
⢿ Downloading Trunk 1.17.2...
⣻ Downloading Trunk 1.17.2...
⣽ Downloading Trunk 1.17.2...
⣾ Downloading Trunk 1.17.2...
⣷ Downloading Trunk 1.17.2...
⣯ Downloading Trunk 1.17.2...
⣟ Downloading Trunk 1.17.2...
✔ Downloading Trunk 1.17.2... done
⡿ Verifying Trunk sha256...
✔ Verifying Trunk sha256... done
⡿ Unpacking Trunk...
✔ Unpacking Trunk... done

✔ 14 linters were enabled (.trunk/trunk.yaml)
  bandit 1.7.5 (20 python files)
  black 23.9.1 (1 jupyter, 19 python files)
  checkov 3.0.32 (2 json, 2 yaml files)
  git-diff-check (44 files)
  isort 5.12.0 (20 python files)
  markdownlint 0.37.0 (1 markdown file) (created .markdownlint.yaml)
  osv-scanner 1.4.3 (3 lockfile files)
  oxipng 9.0.0 (3 png files)
  prettier 3.0.3 (3 javascript, 2 json, 1 markdown, 2 yaml files)
  ruff 0.1.5 (20 python files) (created ruff.toml)
  taplo 0.8.1 (1 toml file)
  trivy 0.47.0 (2 yaml files)
  trufflehog 3.62.1 (44 files)
  yamllint 1.33.0 (2 yaml files) (created .yamllint.yaml)
Next Steps
 1. Read documentation
    Our documentation can be found at https://docs.trunk.io
 2. Get help and give feedback
    Join the Trunk community at https://slack.trunk.io
trunk fmt src/codeas/codebase.py || exit 0 4/7 ✓
Checked 1 file
✔ No issues
trunk check --fix --print-failures src/codeas/codebase.py 5/7 ✓
Checked 1 file
✔ No issues
trunk fmt src/codeas/codebase.py || exit 0 6/7 ✓
  NOTICES  
 src/codeas/codebase.py  ignored empty file [black]
 Hint: use --force to check ignored files
Checked 1 file
✔ No issues
trunk check --fix --print-failures src/codeas/codebase.py 7/7 ✓
  NOTICES  
 src/codeas/codebase.py  ignored empty file [black]
 Hint: use --force to check ignored files
Checked 1 file
✔ No issues

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

Install Sweep Configs: Pull Request

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/mrenner-ML/codeas-fork/blob/e9bf5bcc8e9ea03ce057f1d6de68be26306299e3/src/codeas/assistant.py#L1-L189 https://github.com/mrenner-ML/codeas-fork/blob/e9bf5bcc8e9ea03ce057f1d6de68be26306299e3/src/codeas/codebase.py#L1-L105 https://github.com/mrenner-ML/codeas-fork/blob/e9bf5bcc8e9ea03ce057f1d6de68be26306299e3/src/codeas/initializer.py#L1-L43 https://github.com/mrenner-ML/codeas-fork/blob/e9bf5bcc8e9ea03ce057f1d6de68be26306299e3/src/codeas/cli.py#L1-L84

Step 2: ⌨️ Coding

trunk fmt src/codeas/assistant.py || exit 0 1/2 ✓
Checked 1 file
✔ No issues
trunk check --fix --print-failures src/codeas/assistant.py 2/2 ✓
Checked 1 file
✔ No issues

trunk fmt src/codeas/codebase.py || exit 0 1/2 ✓
Checked 1 file
✔ No issues
Run trunk upgrade to upgrade 2 linters
trunk check --fix --print-failures src/codeas/codebase.py 2/2 ✓
Checked 1 file
✔ No issues


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/change-default-instantiation.


🎉 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