From 105c6205ebfea5cd9e8298c758fe88002069dbbd Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 4 Jun 2026 13:24:25 +0000 Subject: [PATCH] Replace arup-group references with templated github_owner Add a github_owner cookiecutter variable (default renefritze) so generated projects choose their own org, and use it in repository_url, the README codecov link, and the markdown-link-check exclude pattern. Also fix the malformed codecov URL and switch the default author email to @example.com. Update the template repo's own configs to reference renefritze. https://claude.ai/code/session_016pjb6UnEngB7MFpSwDjNsq --- .markdown_link_check_config.json | 2 +- .pre-commit-config.yaml | 2 +- cookiecutter.json | 5 +++-- .../.markdown_link_check_config.json | 2 +- {{cookiecutter.project_slug}}/.pre-commit-config.yaml | 2 +- {{cookiecutter.project_slug}}/README.md | 2 +- 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.markdown_link_check_config.json b/.markdown_link_check_config.json index 569b3ac..564e1dd 100644 --- a/.markdown_link_check_config.json +++ b/.markdown_link_check_config.json @@ -5,7 +5,7 @@ "pattern": "cookiecutter.repository_url" }, { - "pattern": "^https://github.com/arup-group" + "pattern": "^https://github.com/renefritze" } ] } diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 20b48f4..09a8d59 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: - id: ruff-format # The markdown-link-check can't access internal or private repos, see # .markdown_link_check_config.json on how to exclude more than the -# github.com/arup-group +# github.com/renefritze - repo: https://github.com/tcort/markdown-link-check rev: v3.11.2 hooks: diff --git a/cookiecutter.json b/cookiecutter.json index 0046454..b42d302 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -2,10 +2,11 @@ "author": "FirstName OtherNames LastName", "firstname": "{{cookiecutter.author.split(' ')[0]}}", "lastname": "{{cookiecutter.author.split(' ')[-1]}}", - "email": "{{cookiecutter.firstname.lower()}}.{{cookiecutter.lastname.lower()}}@arup.com", + "email": "{{cookiecutter.firstname.lower()}}.{{cookiecutter.lastname.lower()}}@example.com", "project_slug": "The name of your package", "__module_name": "{{cookiecutter.project_slug.replace('-', '_')}}", - "repository_url": "https://github.com/arup-group/{{cookiecutter.project_slug}}", + "github_owner": "renefritze", + "repository_url": "https://github.com/{{cookiecutter.github_owner}}/{{cookiecutter.project_slug}}", "create_git_repository": "yes", "short_description": "One-liner to describe the package", "minimum_python_version": "3.10", diff --git a/{{cookiecutter.project_slug}}/.markdown_link_check_config.json b/{{cookiecutter.project_slug}}/.markdown_link_check_config.json index 305cd80..ae7563b 100644 --- a/{{cookiecutter.project_slug}}/.markdown_link_check_config.json +++ b/{{cookiecutter.project_slug}}/.markdown_link_check_config.json @@ -2,7 +2,7 @@ "__comment__": "https://github.com/tcort/markdown-link-check#config-file-format", "ignorePatterns": [ { - "pattern": "^https://github.com/arup-group" + "pattern": "^https://github.com/{{cookiecutter.github_owner}}" } ] } diff --git a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml index 4a9241e..1a64c38 100644 --- a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml +++ b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: - id: ruff-format # The markdown-link-check can't access internal or private repos, see # .markdown_link_check_config.json on how to exclude more than the -# github.com/arup-group +# github.com/{{cookiecutter.github_owner}} - repo: https://github.com/tcort/markdown-link-check rev: v3.11.2 hooks: diff --git a/{{cookiecutter.project_slug}}/README.md b/{{cookiecutter.project_slug}}/README.md index 4d58925..3cad0be 100644 --- a/{{cookiecutter.project_slug}}/README.md +++ b/{{cookiecutter.project_slug}}/README.md @@ -18,7 +18,7 @@ After generating your project - setup branch protection+automerge in [github project settings]({{cookiecutter.repository_url}}/settings/branches) - request install for the codecov.io app in [github project settings]({{cookiecutter.repository_url}}/settings/installations) -- configure codecov.io in [codecov.io settings](https://codecov.io/gh/arup-group/cookiecutter.project_slug}}/settings) +- configure codecov.io in [codecov.io settings](https://codecov.io/gh/{{cookiecutter.github_owner}}/{{cookiecutter.project_slug}}/settings) - add the `CODECOV_TOKEN` secret in [github project settings]({{cookiecutter.repository_url}}/settings/secrets/actions)