Skip to content

Commit 5f438b5

Browse files
authored
Merge pull request #87 from SymbolicML/sweep/add-sweep-config
Configure Sweep
2 parents 3ae0e5c + 9ecfe64 commit 5f438b5

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

sweep.yaml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Sweep AI turns bugs & feature requests into code changes (https://sweep.dev)
2+
# For details on our config file, check out our docs at https://docs.sweep.dev/usage/config
3+
4+
# 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.
5+
rules:
6+
- "All docstrings and comments should be up to date."
7+
- "All new logic should have corresponding unit tests."
8+
9+
# 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'.
10+
branch: 'main'
11+
12+
# By default Sweep will read the logs and outputs from your existing Github Actions. To disable this, set this to false.
13+
gha_enabled: True
14+
15+
# 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.
16+
#
17+
# Example:
18+
#
19+
# description: sweepai/sweep is a python project. The main api endpoints are in sweepai/api.py. Write code that adheres to PEP8.
20+
description: 'DynamicQuantities.jl is a Julia project for physical units stored in a single static type.'
21+
22+
# 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.
23+
draft: False
24+
25+
# This is a list of directories that Sweep will not be able to edit.
26+
blocked_dirs: []
27+
28+
# 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.
29+
#
30+
# Example:
31+
#
32+
# docs:
33+
# - PyGitHub: ["https://pygithub.readthedocs.io/en/latest/", "We use pygithub to interact with the GitHub API"]
34+
docs: []
35+
36+
# 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.
37+
sandbox:
38+
install:
39+
- trunk init
40+
check:
41+
- trunk fmt {file_path} || return 0
42+
- trunk check --fix --print-failures {file_path}

0 commit comments

Comments
 (0)