-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.json
More file actions
73 lines (73 loc) · 1.78 KB
/
opencode.json
File metadata and controls
73 lines (73 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
"$schema": "https://opencode.ai/config.json",
"instructions": [
".agents/rules/testing.md",
".agents/rules/project-structure.md"
],
"lsp": {
"basedpyright": {
"command": [".venv/bin/basedpyright-langserver", "--stdio"],
"extensions": [".py", ".pyi"]
},
"ruff": {
"command": [".venv/bin/ruff", "server"],
"extensions": [".py", ".pyi"]
}
},
"formatter": {
"ruff": {
"command": [".venv/bin/ruff", "format", "$FILE"],
"extensions": [".py", ".pyi"]
}
},
"permission": {
"bash": {
"python -m pytest *": "allow",
"python -m gitwise *": "allow",
"gitwise *": "allow",
"pyright *": "allow",
"shellcheck *": "allow",
"uv run pytest *": "allow",
"uv run basedpyright *": "allow",
"uv run python -m gitwise *": "allow",
"basedpyright *": "allow",
"ruff *": "allow",
"git status *": "allow",
"git log *": "allow",
"git diff *": "allow",
"git branch *": "allow",
"git show *": "allow",
"git rev-parse *": "allow",
"git config *": "allow",
"git ls-files *": "allow",
"git for-each-ref *": "allow",
"git add *": "allow",
"git commit *": "allow",
"git tag *": "allow",
"git push *": "ask",
"git worktree *": "allow",
"cat *": "allow",
"ls *": "allow",
"mkdir *": "allow",
"*--no-gpg-sign*": "deny",
"*--no-verify*": "deny",
"*push*--force*": "deny",
"*push*-f*": "deny",
"*reset*--hard*": "deny",
"*": "ask"
}
},
"watcher": {
"ignore": [
"__pycache__/**",
".pytest_cache/**",
"*.pyc",
"research/**",
"review/**",
"*.egg-info/**",
".venv/**",
"node_modules/**",
"uv.lock"
]
}
}