From 8151133f8db985427d9192cfff2f1454f54969d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Susana=20V=C3=A1zquez?= <3016283+svazquezco@users.noreply.github.com> Date: Tue, 29 Sep 2026 13:46:06 +0200 Subject: [PATCH] chore: disable Claude Code attribution in commits and PRs Add a shared project .claude/settings.json that clears the Claude Code commit and PR attribution and disables the session URL, so commits and pull requests created with Claude Code carry no co-author trailer. Track only .claude/settings.json and keep .claude/settings.local.json and the rest of .claude/ ignored for personal settings and worktrees. Document the policy in docs/contributing.md. --- .claude/settings.json | 7 +++++++ .gitignore | 5 +++-- docs/contributing.md | 12 ++++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 .claude/settings.json diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 00000000..b7f9b0a6 --- /dev/null +++ b/.claude/settings.json @@ -0,0 +1,7 @@ +{ + "attribution": { + "commit": "", + "pr": "", + "sessionUrl": false + } +} diff --git a/.gitignore b/.gitignore index 35e2d68e..069f0afb 100644 --- a/.gitignore +++ b/.gitignore @@ -175,5 +175,6 @@ make/local.mk # E2E report e2e-report.xml -# Claude Code local artifacts -.claude/ +# Claude +.claude/* +!.claude/settings.json diff --git a/docs/contributing.md b/docs/contributing.md index a827b92c..784abb42 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -25,6 +25,18 @@ This repository uses Docker as the default local execution model. - Use `make run` for an IPython session with project dependencies available. - Use `make test`, `make check`, and `make check-all` through the provided `make` targets. +## Claude Code Settings + +The repository commits a shared project settings file, +[`.claude/settings.json`](../.claude/settings.json). + +Only `.claude/settings.json` is tracked. Keep personal settings in +`.claude/settings.local.json` or other files under `.claude/`, which +[`.gitignore`](../.gitignore) keeps out of version control. See the Claude Code +[settings](https://code.claude.com/docs/en/settings#settings-files-and-who-they-affect) +and [attribution](https://code.claude.com/docs/en/settings-reference#attribution) +references for details. + ## Repository-Specific Expectations - Keep public API changes aligned with [`mpt_api_client/mpt_client.py`](../mpt_api_client/mpt_client.py) and the resource/service layout described in [architecture.md](architecture.md).