mirror of
https://github.com/SikongJueluo/Mini-Nav.git
synced 2026-07-12 20:15:31 +08:00
chore(project): adjust safety rules
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -220,7 +220,6 @@ outputs/
|
||||
openspec/changes/
|
||||
.logs/
|
||||
docs/superpowers
|
||||
.opencode/
|
||||
|
||||
# Devenv
|
||||
.devenv*
|
||||
|
||||
4
.opencode/.gitignore
vendored
Normal file
4
.opencode/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
node_modules
|
||||
package.json
|
||||
package-lock.json
|
||||
bun.lock
|
||||
@@ -1,20 +1,16 @@
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"permission": {
|
||||
"bash": {
|
||||
"python": "deny",
|
||||
"python *": "deny",
|
||||
"make": "deny",
|
||||
"make *": "deny",
|
||||
"just remote *": "ask",
|
||||
"verilator": "deny",
|
||||
"verilator *": "deny"
|
||||
},
|
||||
"read": {
|
||||
".env": "deny"
|
||||
},
|
||||
"edit": {
|
||||
".env": "deny"
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"permission": {
|
||||
"bash": {
|
||||
"python": "deny",
|
||||
"python *": "deny",
|
||||
"just remote *": "ask"
|
||||
},
|
||||
"read": {
|
||||
".env": "deny"
|
||||
},
|
||||
"edit": {
|
||||
".env": "deny"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,30 +1,12 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/kenryu42/claude-code-safety-net/main/assets/cc-safety-net.schema.json",
|
||||
"version": 1,
|
||||
"rules": [
|
||||
{
|
||||
"name": "block-uv-run",
|
||||
"command": "uv",
|
||||
"subcommand": "run",
|
||||
"block_args": [
|
||||
"python",
|
||||
"python3",
|
||||
"pytest",
|
||||
"pip",
|
||||
"-m",
|
||||
"--module",
|
||||
"--help",
|
||||
"--version",
|
||||
"-h",
|
||||
"-v"
|
||||
],
|
||||
"reason": "Local Environment is not avaiable. Please use \"just remote <cmd>\" to run commands in the remote docker. "
|
||||
},
|
||||
{
|
||||
"name": "block-uv-sync",
|
||||
"command": "uv",
|
||||
"block_args": ["sync"],
|
||||
"reason": "The project is managed by micromamba and uv. Do not sync packages directly by uv. Use \"just sync-pkgs\" or \"uv sync --inexact\" instead."
|
||||
}
|
||||
]
|
||||
"$schema": "https://raw.githubusercontent.com/kenryu42/claude-code-safety-net/main/assets/cc-safety-net.schema.json",
|
||||
"version": 1,
|
||||
"rules": [
|
||||
{
|
||||
"name": "block-uv-sync",
|
||||
"command": "uv",
|
||||
"block_args": ["sync"],
|
||||
"reason": "The project is managed by micromamba and uv. Do not sync packages directly by uv. Use \"just sync-pkgs\" or \"uv sync --inexact\" instead."
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ dev = [
|
||||
|
||||
[tool.ty.environment]
|
||||
python = "$UV_PROJECT_ENVIRONMENT"
|
||||
root = ["./mini-nav", "./notebooks", "./hw/sim"]
|
||||
root = ["./mini-nav", "./notebooks", "./hw/sim", "./scripts"]
|
||||
|
||||
[tool.basedpyright]
|
||||
include = ["mini-nav", "notebooks"]
|
||||
|
||||
Reference in New Issue
Block a user