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

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
57ff881
Create sweep.yaml
sweep-ai[bot] Oct 19, 2023
65b39f0
Create sweep template
sweep-ai[bot] Oct 19, 2023
3de9931
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 19, 2023
ca45407
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 19, 2023
ccb63aa
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 19, 2023
70f288b
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 19, 2023
8e7719e
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 19, 2023
85407f3
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 19, 2023
7604a67
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 19, 2023
dbd5c1a
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 19, 2023
41f5c2f
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 19, 2023
8b4f1a6
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 19, 2023
2b99690
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 19, 2023
f057897
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 19, 2023
caef173
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 19, 2023
da169be
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 19, 2023
61be85a
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 19, 2023
1a875d3
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 19, 2023
f82fefa
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 19, 2023
93abfbd
Prettified Code!
sweep-ai[bot] Oct 19, 2023
a6763c1
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 19, 2023
977afa7
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 19, 2023
705a96c
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 19, 2023
ad64a8c
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 19, 2023
a1c6345
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 19, 2023
f744822
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 19, 2023
fc1c2cc
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 19, 2023
7efb6b6
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 19, 2023
137c26c
Merge main into sweep/add-sweep-config
sweep-ai[bot] Oct 20, 2023
82c4cbd
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 3, 2023
c9a7ede
Merge main into sweep/add-sweep-config
sweep-ai[bot] Nov 3, 2023
6304799
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 28, 2023
5b04860
Merge main into sweep/add-sweep-config
sweep-ai[bot] Dec 28, 2023
f614b5c
Merge main into sweep/add-sweep-config
sweep-ai[bot] Jan 9, 2024
718f6c3
Merge main into sweep/add-sweep-config
sweep-ai[bot] Jan 9, 2024
685ba4a
Merge main into sweep/add-sweep-config
sweep-ai[bot] Jan 13, 2024
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
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/sweep-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
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: |
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."
- "Code should be properly formatted and follow consistent indentation."
- "Variable and function names should be descriptive and follow a consistent naming convention."
- "There should be no unused imports or variables in the code."
- "Code should be modular and follow the principle of single responsibility."
- "There should be no commented out code or unused code in the repository."

# 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}
- trunk check --fix --print-failures {file_path}