Copy
Download
.claude/settings.json
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"permissions": {
"allow": [
"Bash(pytest *)",
"Bash(python -m pytest *)",
"Bash(ruff check *)",
"Bash(ruff format *)",
"Bash(nbstripout *)"
],
"ask": [
"Bash(git push *)",
"Bash(pip install *)",
"Bash(pip3 install *)",
"Bash(conda install *)",
"Bash(mamba install *)",
"Bash(uv add *)",
"Bash(uv pip install *)",
"Bash(npm install *)",
"Bash(rm -rf *)",
"Bash(curl *)",
"Bash(wget *)",
"Bash(scp *)",
"Bash(rsync *)",
"Bash(ssh *)",
"Bash(gh pr merge *)",
"Bash(sbatch *)",
"mcp__*",
"Bash(aws s3 cp *)",
"Bash(aws s3 sync *)",
"Bash(gsutil *)",
"Bash(rclone *)"
],
"deny": [
"Read(./.env)",
"Read(./.env.*)",
"Read(**/*.pem)",
"Read(**/auth.json)",
"Read(**/credentials)",
"Read(~/.ssh/**)",
"Read(~/.aws/**)",
"Read(~/.gnupg/**)",
"Read(~/.config/ai-cli/**)",
"Read(~/.config/gh/**)",
"Bash(git push --force *)",
"Bash(git push -f *)",
"Bash(git push --force-with-lease *)",
"Bash(git reset --hard *)",
"Bash(git clean *)",
"Bash(git branch -D *)",
"Bash(git commit --no-verify *)",
"Edit(./data/raw/**)",
"Read(./data/private/**)",
"Read(./data/collaborator/**)",
"Edit(./data/private/**)",
"Edit(./data/collaborator/**)"
],
"disableBypassPermissionsMode": "disable"
},
"sandbox": {
"enabled": true,
"failIfUnavailable": true,
"allowUnsandboxedCommands": false,
"autoAllowBashIfSandboxed": true,
"excludedCommands": [
"git push *",
"gh *"
],
"filesystem": {
"denyRead": [
"./.env",
"~/.ssh",
"~/.aws",
"~/.gnupg",
"~/.config/ai-cli",
"~/.config/gh",
"./data/private",
"./data/collaborator"
],
"denyWrite": [
"./data/raw"
]
},
"network": {
"allowedDomains": [
"pypi.org",
"files.pythonhosted.org",
"conda.anaconda.org",
"repo.anaconda.com",
"rest.ensembl.org",
"eutils.ncbi.nlm.nih.gov",
"www.ncbi.nlm.nih.gov",
"rest.uniprot.org",
"api.genome.ucsc.edu",
"www.encodeproject.org"
]
}
},
"hooks": {
"PostToolUse": [
{
"matcher": "Edit|Write|MultiEdit",
"hooks": [
{
"type": "command",
"command": "f=$(python3 -c 'import json,sys; print(json.load(sys.stdin).get(\"tool_input\",{}).get(\"file_path\",\"\"))'); ( case \"$f\" in *.py|*.ipynb) ruff check --fix \"$f\" ;; esac ) 1>&2; rc=$?; [ $rc -eq 0 ] || [ $rc -eq 127 ] || exit 2",
"timeout": 60
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "grep -q '\"stop_hook_active\": *true' && exit 0; cd \"$CLAUDE_PROJECT_DIR\" && ( pytest -q ) 1>&2 || exit 2",
"timeout": 600
}
]
}
]
},
"attribution": {
"commit": "",
"pr": ""
}
}