Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure Sweep #1

Merged
merged 2 commits into from
Oct 27, 2023
Merged

Configure Sweep #1

merged 2 commits into from
Oct 27, 2023

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Oct 27, 2023

🎉 Thank you for installing Sweep! We're thrilled to announce the latest update for Sweep, your AI junior developer on GitHub. This PR creates a sweep.yaml config file, allowing you to personalize Sweep's performance according to your project requirements.

What's new?

  • Sweep is now configurable.
  • To configure Sweep, simply edit the sweep.yaml file in the root of your repository.
  • If you need help, check out the Sweep Default Config or Join Our Discord for help.

If you would like me to stop creating this PR, go to issues and say "Sweep: create an empty sweep.yaml file".
Thank you for using Sweep! 🧹

@sweep-ai sweep-ai bot added the sweep label Oct 27, 2023
@sweep-ai
Copy link
Contributor Author

sweep-ai bot commented Oct 27, 2023

Apply Sweep Rules to your PR?

@sweep-ai
Copy link
Contributor Author

sweep-ai bot commented Oct 27, 2023

The command:
Run docker run --rm beyond_the_nest:test 10
yielded the following error:
##[error]Process completed with exit code 1.
Here are the logs:

Traceback (most recent call last):
File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/appuser/beyond_the_nest/__main__.py", line 1, in <module>
from beyond_the_nest.beyond_the_nest import generate_text, load_transformers_model
ModuleNotFoundError: No module named 'beyond_the_nest.beyond_the_nest'

@sweep-ai
Copy link
Contributor Author

sweep-ai bot commented Oct 27, 2023

The command:
Run docker run --rm beyond_the_nest:test 10
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/appuser/beyond_the_nest/main.py", line 1, in
from beyond_the_nest.beyond_the_nest import generate_text, load_transformers_model
ModuleNotFoundError: No module named 'beyond_the_nest.beyond_the_nest'

Hi @sweep-ai[bot],

I am making the following changes:

File Path Proposed Changes
beyond_the_nest/__main__.py Modify beyond_the_nest/main.py with contents:
• Replace the import statement 'from beyond_the_nest.beyond_the_nest import generate_text, load_transformers_model' with 'from beyond_the_nest.beyond_the_nest_models import generate_text, load_transformers_model'.
beyond_the_nest/__main__.py Run beyond_the_nest/main.py through the sandbox.
test/test_docker.py Create test/test_docker.py with contents:
• Import the 'subprocess' module.
• Define a function 'test_docker_run' that runs the command 'docker run --rm beyond_the_nest:test 10' using 'subprocess.run', and asserts that the return code is 0.
test/test_docker.py Run test/test_docker.py through the sandbox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant