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 #186

Closed
wants to merge 44 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
a332715
Create sweep.yaml
sweep-ai[bot] Oct 31, 2023
4aee54e
Create sweep template
sweep-ai[bot] Oct 31, 2023
6bf0650
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 1, 2023
ef1d12a
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 1, 2023
8f20e3d
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 2, 2023
27a4024
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 3, 2023
00b87cf
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 3, 2023
e40cc9d
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 6, 2023
eb2b7d9
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 6, 2023
faf70d9
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 6, 2023
0e25325
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 6, 2023
47038eb
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 6, 2023
28380af
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 6, 2023
2f33808
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 8, 2023
eee3a41
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 8, 2023
219efdb
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 9, 2023
996a968
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 10, 2023
8292d36
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 10, 2023
9fc5f73
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 10, 2023
3ccce81
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 14, 2023
4a48f34
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 14, 2023
e145de0
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 16, 2023
f991c09
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 16, 2023
a17febc
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 16, 2023
163981c
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 16, 2023
0bbfac2
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 16, 2023
abc866a
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 16, 2023
7d89131
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 17, 2023
e0a43a8
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 21, 2023
12ba720
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 22, 2023
ce1b343
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 22, 2023
faee29d
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 22, 2023
8085106
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 22, 2023
35fcf60
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 3, 2023
aa18a6a
Merge pull request #211 from NethermindEth/starknet-abi-forms
rjnrohit Dec 4, 2023
bd839f7
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 4, 2023
d790dcf
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 13, 2023
7c43ed9
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 13, 2023
bf20530
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 13, 2023
5db78da
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 13, 2023
614b102
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 13, 2023
4e3af99
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 14, 2023
0c2b053
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 15, 2023
f8d8343
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/sweep-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Sweep Issue
title: 'Sweep: '
description: For small bugs, features, refactors, and tests to be handled by Sweep, an AI-powered junior developer.
labels: sweep
body:
- type: textarea
id: description
attributes:
label: Details
description: Tell Sweep where and what to edit and provide enough context for a new developer to the codebase
placeholder: |
Unit Tests: Write unit tests for <FILE>. Test each function in the file. Make sure to test edge cases.
Bugs: The bug might be in <FILE>. Here are the logs: ...
Features: the new endpoint should use the ... class from <FILE> because it contains ... logic.
Refactors: We are migrating this function to ... version because ...
46 changes: 46 additions & 0 deletions sweep.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Sweep AI turns bugs & feature requests into code changes (https://sweep.dev)
# For details on our config file, check out our docs at https://docs.sweep.dev/usage/config

# This setting contains a list of rules that Sweep will check for. If any of these rules are broken in a new commit, Sweep will create an pull request to fix the broken rule.
rules:
- "All docstrings and comments should be up to date."
- "Do not have duplicate code that serves the same purpose. Consolidate and refactor code to avoid redundancy."
- "Use descriptive variable names that accurately represent the purpose of the variable."
- "Avoid using magic numbers or hard-coded values. Use constants or variables instead."
- "Remove commented-out code that is no longer needed."
- "Ensure that code changes are properly tested to avoid introducing bugs."

# This is the branch that Sweep will develop from and make pull requests to. Most people use 'main' or 'master' but some users also use 'dev' or 'staging'.
branch: 'main'

# By default Sweep will read the logs and outputs from your existing Github Actions. To disable this, set this to false.
gha_enabled: True

# This is the description of your project. It will be used by sweep when creating PRs. You can tell Sweep what's unique about your project, what frameworks you use, or anything else you want.
#
# Example:
#
# description: sweepai/sweep is a python project. The main api endpoints are in sweepai/api.py. Write code that adheres to PEP8.
description: ''

# This sets whether to create pull requests as drafts. If this is set to True, then all pull requests will be created as drafts and GitHub Actions will not be triggered.
draft: False

# This is a list of directories that Sweep will not be able to edit.
blocked_dirs: []

# This is a list of documentation links that Sweep will use to help it understand your code. You can add links to documentation for any packages you use here.
#
# Example:
#
# docs:
# - PyGitHub: ["https://pygithub.readthedocs.io/en/latest/", "We use pygithub to interact with the GitHub API"]
docs: []

# Sandbox executes commands in a sandboxed environment to validate code changes after every edit to guarantee pristine code. For more details, see the [Sandbox](./sandbox) page.
sandbox:
install:
- trunk init
check:
- trunk fmt {file_path} || return 0
- trunk check --fix --print-failures {file_path}
Loading