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

View File

@@ -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."
}
]
}