mirror of
https://github.com/borgbackup/borg.git
synced 2026-09-01 22:23:19 +02:00
Port of the .claude config from the 1.4-maint line, adapted for master (borg 2.x): CLAUDE.md now describes the borgstore-based repository, the archiver/ command package, Python >=3.11 and the borg2 testsuite layout. Shared .claude/CLAUDE.md and settings.json are tracked; machine-specific bits (local virtualenv path, GPG signing) live in a gitignored .claude/CLAUDE.local.md. Switch .gitignore from ignoring all of .claude/ to ignoring only the personal settings.local.json and CLAUDE.local.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Dg49arm61F42gHR4aFD4ac
48 lines
1.1 KiB
JSON
48 lines
1.1 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"permissions": {
|
|
"allow": [
|
|
"Read",
|
|
"Grep",
|
|
"Glob",
|
|
"Bash(ls:*)",
|
|
"Bash(cat:*)",
|
|
"Bash(rg:*)",
|
|
"Bash(find:*)",
|
|
"Bash(which:*)",
|
|
"Bash(pytest:*)",
|
|
"Bash(python -m pytest:*)",
|
|
"Bash(ruff:*)",
|
|
"Bash(tox:*)",
|
|
"Bash(fakeroot -u tox:*)",
|
|
"Bash(pre-commit run:*)",
|
|
"Bash(python scripts/make.py:*)",
|
|
"Bash(git status:*)",
|
|
"Bash(git diff:*)",
|
|
"Bash(git log:*)",
|
|
"Bash(git show:*)",
|
|
"Bash(git branch:*)",
|
|
"Bash(git blame:*)",
|
|
"Bash(git stash list:*)",
|
|
"Bash(PAGER=cat gh:*)"
|
|
],
|
|
"ask": [
|
|
"Bash(git push:*)",
|
|
"Bash(gh pr create:*)",
|
|
"Bash(gh pr merge:*)",
|
|
"Bash(pip install:*)"
|
|
],
|
|
"deny": [
|
|
"Bash(git add -A:*)",
|
|
"Bash(git add --all:*)",
|
|
"Bash(git add .)",
|
|
"Bash(rm -rf /:*)",
|
|
"Bash(rm -rf ~:*)",
|
|
"Read(.env)",
|
|
"Read(.env.*)",
|
|
"Read(**/.ssh/**)",
|
|
"Read(**/*_key)",
|
|
"Read(**/*.pem)"
|
|
]
|
|
}
|
|
}
|