chore(project): adjust safety rules

This commit is contained in:
2026-05-15 10:30:06 +08:00
parent ab616528b4
commit 3203b2d9af
5 changed files with 28 additions and 47 deletions

1
.gitignore vendored
View File

@@ -220,7 +220,6 @@ outputs/
openspec/changes/ openspec/changes/
.logs/ .logs/
docs/superpowers docs/superpowers
.opencode/
# Devenv # Devenv
.devenv* .devenv*

4
.opencode/.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
node_modules
package.json
package-lock.json
bun.lock

View File

@@ -4,11 +4,7 @@
"bash": { "bash": {
"python": "deny", "python": "deny",
"python *": "deny", "python *": "deny",
"make": "deny", "just remote *": "ask"
"make *": "deny",
"just remote *": "ask",
"verilator": "deny",
"verilator *": "deny"
}, },
"read": { "read": {
".env": "deny" ".env": "deny"

View File

@@ -2,24 +2,6 @@
"$schema": "https://raw.githubusercontent.com/kenryu42/claude-code-safety-net/main/assets/cc-safety-net.schema.json", "$schema": "https://raw.githubusercontent.com/kenryu42/claude-code-safety-net/main/assets/cc-safety-net.schema.json",
"version": 1, "version": 1,
"rules": [ "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", "name": "block-uv-sync",
"command": "uv", "command": "uv",

View File

@@ -40,7 +40,7 @@ dev = [
[tool.ty.environment] [tool.ty.environment]
python = "$UV_PROJECT_ENVIRONMENT" python = "$UV_PROJECT_ENVIRONMENT"
root = ["./mini-nav", "./notebooks", "./hw/sim"] root = ["./mini-nav", "./notebooks", "./hw/sim", "./scripts"]
[tool.basedpyright] [tool.basedpyright]
include = ["mini-nav", "notebooks"] include = ["mini-nav", "notebooks"]