Skip to content

Copier update (misc version bumps)#52

Merged
ejfine merged 2 commits intomainfrom
cop-up
Aug 2, 2025
Merged

Copier update (misc version bumps)#52
ejfine merged 2 commits intomainfrom
cop-up

Conversation

@ejfine
Copy link
Contributor

@ejfine ejfine commented Aug 2, 2025

Pull in upstream template changes

Summary by CodeRabbit

  • Chores
    • Updated versions for several dependencies and tools, including UV, PNPM, Copier, pytest, and related extensions.
    • Corrected package and module names for Copier template extensions across configuration and setup files.
    • Improved logic for dependency setup scripts to better handle conflicting flags.
    • Added new version keys for additional tools in configuration.
    • Updated setup instructions in documentation for generating lock files.
    • Adjusted linting configuration to ignore a specific rule.
    • Refined formatting in workflow and configuration files.
    • Updated dependabot configuration to reduce noise from patch update notifications.

@ejfine ejfine requested a review from Copilot August 2, 2025 18:20
@ejfine ejfine self-assigned this Aug 2, 2025
@coderabbitai
Copy link

coderabbitai bot commented Aug 2, 2025

Walkthrough

This update primarily focuses on synchronizing tool and dependency versions, correcting naming and import paths for Copier template extensions, and refining setup scripts and documentation. Minor changes include lint rule adjustments, workflow formatting fixes, and enhanced logic for setup scripts to handle lock file generation and argument validation.

Changes

Cohort / File(s) Change Summary
Copier Template Extensions Naming & Version Updates
.devcontainer/install-ci-tooling.py, copier.yml, extensions/context.py, pyproject.toml, template/.devcontainer/install-ci-tooling.py.jinja
Corrected naming from copier-templates-extensions to copier-template-extensions and updated related version numbers and import paths.
Manual Setup Script Logic
.devcontainer/manual-setup-deps.py, template/.devcontainer/manual-setup-deps.py
Updated logic for skip_check_lock to use logical OR with optionally_check_lock and improved conflict detection for mutually exclusive flags.
Linting Configuration
ruff.toml, template/ruff.toml
Added SIM114 to ignored rules to avoid coverage confusion with or statements.
Workflow Formatting
.github/workflows/pre-commit.yaml, template/.github/workflows/pre-commit.yaml
Removed extra space in step name for installing package versions.
Devcontainer Context Hash
.devcontainer/devcontainer.json
Updated context hash comment for devcontainer configuration.
Copier Answers Version Bump
.copier-answers.yml
Bumped _commit field from v0.0.57 to v0.0.60.
README and Setup Instructions
README.md
Changed lock file generation instructions to use setup script and added explicit git add . step.
Dependabot Configuration
template/.github/dependabot.yml.jinja
Added global ignore rule for patch-level dependency updates except for explicit exceptions.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant ManualSetupScript
    participant Git

    User->>ManualSetupScript: Run manual-setup-deps.py with flags
    ManualSetupScript->>ManualSetupScript: Validate mutually exclusive flags
    ManualSetupScript->>ManualSetupScript: Determine skip_check_lock logic
    ManualSetupScript->>ManualSetupScript: Generate lock file(s) if needed
    ManualSetupScript-->>User: Exit (success or error)
    User->>Git: git add .
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

  • Copier update (biome) #51: Updates the .copier-answers.yml file's _commit field in a previous version bump, closely related to the current PR's version update.

Poem

In the warren, scripts align,
Names corrected, versions fine.
Lint rules softened, hashes new,
Setup guides now clear for you.
Patchy updates swept aside—
This bunny hops with gentle pride! 🐇✨

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch cop-up

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request updates various package versions and configuration as part of a Copier template update. The changes focus on bumping version numbers for tools and dependencies, fixing package naming consistency, and making minor configuration adjustments.

  • Updates multiple tool versions including UV, PNPM, Copier, and various Python packages
  • Fixes package naming from "copier-templates-extensions" to "copier-template-extensions"
  • Adds new Ruff rule ignores and Dependabot configuration improvements

Reviewed Changes

Copilot reviewed 13 out of 16 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
template/ruff.toml Adds SIM114 rule ignore for coverage checker compatibility
template/.github/dependabot.yml.jinja Expands patch update ignoring to all dependencies except security updates
template/.devcontainer/manual-setup-deps.py Simplifies logic for skip_check_lock variable assignment
template/.devcontainer/install-ci-tooling.py.jinja Corrects package name from copier-templates-extensions to copier-template-extensions
ruff.toml Adds SIM114 rule ignore (mirrors template change)
pyproject.toml Updates pytest and copier package versions
extensions/context.py Updates all tool and package versions in context variables
copier.yml Corrects import reference to use proper package name
README.md Updates setup instructions with improved dependency management steps
.devcontainer/manual-setup-deps.py Simplifies logic for skip_check_lock variable (mirrors template change)
.devcontainer/install-ci-tooling.py Updates tool versions and corrects package name
.devcontainer/devcontainer.json Updates devcontainer context hash
.copier-answers.yml Updates commit reference to newer version
Comments suppressed due to low confidence (1)

uv_env.update({"UV_PYTHON_PREFERENCE": "only-system", "UV_PYTHON": args.python_version})
skip_check_lock = args.skip_check_lock
if skip_check_lock and args.optionally_check_lock:
skip_check_lock = args.skip_check_lock or args.optionally_check_lock
Copy link

Copilot AI Aug 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic change here appears incorrect. The original code assigned args.skip_check_lock to skip_check_lock, but now it's args.skip_check_lock or args.optionally_check_lock. This means if args.optionally_check_lock is True, skip_check_lock will be True, which could bypass lock file checking when it shouldn't be bypassed.

Suggested change
skip_check_lock = args.skip_check_lock or args.optionally_check_lock
skip_check_lock = args.skip_check_lock

Copilot uses AI. Check for mistakes.
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
extensions/context.py (1)

13-46: LGTM! Version updates look appropriate.

The version bumps across various tools and dependencies appear to be routine maintenance updates following semantic versioning. The addition of dot_env_cli_version and playwright_version expands the template's tooling support.

Note: Static analysis flagged this file for having too many statements (61 > 50) and missing an __init__.py file. While not critical for this PR, consider refactoring the version definitions into a separate configuration file or adding the missing __init__.py for better code organization.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ad18f25 and 4d16e42.

⛔ Files ignored due to path filters (1)
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (15)
  • .copier-answers.yml (1 hunks)
  • .devcontainer/devcontainer.json (1 hunks)
  • .devcontainer/install-ci-tooling.py (2 hunks)
  • .devcontainer/manual-setup-deps.py (1 hunks)
  • .github/workflows/pre-commit.yaml (1 hunks)
  • README.md (1 hunks)
  • copier.yml (1 hunks)
  • extensions/context.py (2 hunks)
  • pyproject.toml (1 hunks)
  • ruff.toml (1 hunks)
  • template/.devcontainer/install-ci-tooling.py.jinja (2 hunks)
  • template/.devcontainer/manual-setup-deps.py (1 hunks)
  • template/.github/dependabot.yml.jinja (1 hunks)
  • template/.github/workflows/pre-commit.yaml (1 hunks)
  • template/ruff.toml (1 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
.devcontainer/devcontainer.json (1)
.github/workflows/hash_git_files.py (2)
  • update_devcontainer_context_hash (106-127)
  • extract_devcontainer_context_hash (94-103)
🪛 Ruff (0.12.2)
extensions/context.py

1-1: File extensions/context.py is part of an implicit namespace package. Add an __init__.py.

(INP001)


12-12: Too many statements (61 > 50)

(PLR0915)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: lint-matrix (ubuntu-24.04, 3.13.2, --data-file tests/copier_data/data1.yaml)
  • GitHub Check: lint-matrix (ubuntu-24.04, 3.12.7, --data-file tests/copier_data/data3.yaml)
🔇 Additional comments (16)
.github/workflows/pre-commit.yaml (1)

42-42: LGTM! Minor formatting improvement.

The removal of the extra space in the step name improves consistency and readability.

template/.github/workflows/pre-commit.yaml (1)

42-42: LGTM! Consistent formatting improvement.

The formatting fix matches the change in the main workflow file, maintaining consistency between template and implementation.

ruff.toml (1)

65-65: LGTM! Well-reasoned linting rule ignore.

Adding SIM114 to the ignore list with a clear explanation about coverage checker compatibility is a good trade-off. The comment clearly documents why this simplification rule should be ignored.

template/.github/dependabot.yml.jinja (1)

12-14: LGTM! Practical dependency management improvement.

The global ignore rule for patch updates will significantly reduce noise from frequent minor updates while still allowing important security updates through. This is a sensible default for most projects.

.copier-answers.yml (1)

2-2: LGTM! Template version tracking update.

The commit version bump from v0.0.57 to v0.0.60 properly tracks the upstream template changes being incorporated in this PR.

.devcontainer/devcontainer.json (1)

64-64: LGTM - Automated hash update correctly managed.

The devcontainer context hash update is properly managed by the pre-commit hook and reflects changes to the development environment configuration.

template/ruff.toml (1)

65-65: LGTM - Well-justified lint rule exception.

Adding SIM114 to the ignore list with a clear explanation for coverage analysis compatibility is appropriate.

README.md (1)

13-14: LGTM - Improved setup workflow with enhanced tooling.

The updated instructions properly use the enhanced manual-setup-deps.py script with the --optionally-check-lock flag and include the logical step to stage generated files for commit.

copier.yml (2)

127-127: LGTM - Corrected URL in comment.

Fixed the URL from "copier-templates-extensions" to "copier-template-extensions" to match the actual repository name.


129-129: LGTM - Corrected module import path.

Updated the module name from copier_templates_extensions to copier_template_extensions to match the actual Python package import path.

template/.devcontainer/manual-setup-deps.py (1)

61-62: LGTM - Correct flag handling logic with proper mutual exclusion.

The changes properly implement the --optionally-check-lock functionality:

  1. Initially treats it as skip (line 61) but allows per-environment override when lock files exist (lines 78-79)
  2. Correctly prevents conflicting flag usage by checking original arguments

The logic is sound and enables the intended workflow described in the README.

template/.devcontainer/install-ci-tooling.py.jinja (1)

13-13: LGTM! Package naming correction applied consistently.

The variable name change from COPIER_TEMPLATES_EXTENSION_VERSION to COPIER_TEMPLATE_EXTENSIONS_VERSION and the corresponding package name correction from copier-templates-extensions to copier-template-extensions aligns with the naming corrections applied across other files in this PR.

Also applies to: 81-81

pyproject.toml (1)

9-9: LGTM! Dependency version updates and package name correction.

The version bumps for pytest (8.4.0→8.4.1), copier (9.7.1→9.8.0), and copier-template-extensions (0.3.1→0.3.2) along with the package name correction are consistent with the overall template update.

Also applies to: 13-14

.devcontainer/manual-setup-deps.py (1)

61-64: LGTM! Improved argument validation logic.

The logic change correctly handles the mutual exclusivity of --skip-check-lock and --optionally-check-lock flags while allowing the combined skip_check_lock variable to be used for downstream logic. This prevents conflicting command-line arguments while enabling the optional lock file checking functionality.

extensions/context.py (1)

1-1: LGTM! Import path and URL corrections applied.

The import path correction from copier_templates_extensions to copier_template_extensions and the corresponding URL update maintain consistency with the package naming corrections throughout the codebase.

Also applies to: 5-5

.devcontainer/install-ci-tooling.py (1)

10-13: LGTM! Tool version updates and package name correction.

The version updates for UV (0.7.12→0.8.3), PNPM (10.13.1→10.14.0), Copier (9.7.1→9.8.0), and the corrected package name copier-template-extensions (0.3.1→0.3.2) are consistent with the template synchronization. The variable name correction from COPIER_TEMPLATES_EXTENSION_VERSION to COPIER_TEMPLATE_EXTENSIONS_VERSION maintains naming consistency.

Also applies to: 81-81

@ejfine ejfine merged commit e114afa into main Aug 2, 2025
10 checks passed
@ejfine ejfine deleted the cop-up branch August 2, 2025 18:42
@coderabbitai coderabbitai bot mentioned this pull request Jan 24, 2026
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.

2 participants