Skip to content

Add rename script for project initialization#47

Merged
amrabed merged 2 commits intomainfrom
add-rename-script-15608891695709788367
May 10, 2026
Merged

Add rename script for project initialization#47
amrabed merged 2 commits intomainfrom
add-rename-script-15608891695709788367

Conversation

@google-labs-jules
Copy link
Copy Markdown
Contributor

I have added a new rename Python script that automates the process of renaming the project and updating its metadata. This replaces the previous shell-based approach in the Makefile with a more robust and cross-platform solution.

Key changes:

  • scripts/rename.py: A new script using Click that handles directory renaming, metadata updates in various configuration files, and a global search-and-replace for the 'templates' placeholder.
  • pyproject.toml: Added the rename script to [project.scripts].
  • Makefile: Updated the project target to use uv run rename and improved the uv target to be more resilient.
  • Improved Global Search: The script now handles imports (templates.), paths (templates/), and configuration strings ("templates").

The changes have been verified with make lint and make test, and addressed feedback from a code review.


PR created automatically by Jules for task 15608891695709788367 started by @amrabed

- Create a Python-based `rename` script in `scripts/rename.py` to handle project renaming.
- Replace shell commands in `make project` target with the new `rename` script.
- Update `pyproject.toml` to register the `rename` script.
- Improve `uv` target in `Makefile` to check for existing installation.

The script automates:
- Renaming the `templates` directory.
- Updating metadata in `pyproject.toml`, `mkdocs.yml`, `docs/README.md`, `.github/CODEOWNERS`, and `.github/FUNDING.yml`.
- Global search and replace of 'templates' placeholder in source files.
@google-labs-jules
Copy link
Copy Markdown
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Comment thread scripts/__init__.py
- Moved `new.py` to `scripts/new.py`.
- Updated `[project.scripts]` in `pyproject.toml` to point `new` to `scripts.new:main`.
@amrabed amrabed marked this pull request as ready for review May 10, 2026 21:25
@amrabed amrabed merged commit 3af4e8a into main May 10, 2026
1 check passed
@amrabed amrabed deleted the add-rename-script-15608891695709788367 branch May 10, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant