Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

chore: sync config files from .config-templates#3

Merged
tschm merged 1 commit intomainfrom
sync/update-configs
Aug 27, 2025
Merged

chore: sync config files from .config-templates#3
tschm merged 1 commit intomainfrom
sync/update-configs

Conversation

@tschm
Copy link
Copy Markdown
Owner

@tschm tschm commented Aug 25, 2025

This PR updates config files from tschm/.config-templates.

Summary by CodeRabbit

  • Chores

    • Improved caching for dependency resolution in project setup to speed up CI.
    • Switched workflow authentication to use the GitHub-provided token.
    • Adjusted build environment PATH to prefer local user binaries.
    • Ignored a temporary output file to reduce repo noise.
    • Updated linting tooling to the latest patch release.
  • Style

    • Minor formatting cleanup in task definitions for readability.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Aug 25, 2025

Walkthrough

Adds cache-dependency-glob to the uv setup in the composite action, switches arduino/setup-task repo-token to github.token, refactors the uv Task command block and updates PATH to $HOME/.local/bin, bumps ruff-pre-commit to v0.12.10, ignores .output.txt, and makes a minor Taskfile formatting tweak.

Changes

Cohort / File(s) Summary of Changes
Composite action: setup-project
.github/actions/setup-project/action.yml
Added with: cache-dependency-glob globs to astral-sh/setup-uv@v6; changed arduino/setup-task@v2 repo-token to use ${{ github.token }}.
Task runner configs
.github/taskfiles/build.yml, Taskfile.yml
build.yml: merged uv install into multiline block, changed error group to { ... }, updated PATH to $HOME/.local/bin, added comment. Taskfile.yml: removed a blank line in help task.
Pre-commit
.pre-commit-config.yaml
Bumped ruff-pre-commit rev from v0.12.9 to v0.12.10.
Repository ignore rules
.gitignore
Added “# temp file used by Junie” and ignored .output.txt.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

Hop-hop, I cache and glide,
With uv’s tracks set far and wide.
Tokens swapped, the gates align,
Pre-commit hums in tidy time.
Ignore the crumbs, .output.txt—
My whiskers twitch: what change is next? 🐇✨

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch sync/update-configs

🪧 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.
    • 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.
  • 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 the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

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

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

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

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • 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
Copy Markdown

@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: 2

🧹 Nitpick comments (2)
.gitignore (1)

11-12: Consider moving personal/ephemeral ignores to a global ignore.

The “temp file used by Junie” entry (.output.txt) looks user-specific. If this file isn’t part of CI artifacts, consider using a developer-local global gitignore or a repo-local .gitignore.local pattern to avoid accumulating user-specific entries in the shared template.

.github/actions/setup-project/action.yml (1)

23-23: Trim trailing whitespace (yamllint trailing-spaces).

There are trailing spaces on Line 23; remove them to satisfy linters.

Apply this minimal change:

-        
+
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between f46b7b0 and fda3303.

📒 Files selected for processing (5)
  • .github/actions/setup-project/action.yml (1 hunks)
  • .github/taskfiles/build.yml (1 hunks)
  • .gitignore (1 hunks)
  • .pre-commit-config.yaml (1 hunks)
  • Taskfile.yml (0 hunks)
💤 Files with no reviewable changes (1)
  • Taskfile.yml
🧰 Additional context used
🪛 YAMLlint (1.37.1)
.github/actions/setup-project/action.yml

[error] 23-23: trailing spaces

(trailing-spaces)

🔇 Additional comments (2)
.pre-commit-config.yaml (1)

12-12: Ruff hook bump looks good.

Version bump to ruff-pre-commit v0.12.10 is straightforward and should be compatible with existing args.

.github/actions/setup-project/action.yml (1)

28-29: Using github.token for repo-token is OK.

arduino/setup-task documents repo-token as optional and commonly set to the GitHub-provided token; switching to ${{ github.token }} is consistent with guidance.

Reference: arduino/setup-task README on repo-token. (github.com)

Comment on lines +22 to 23
cache-dependency-glob: "**/*requirements*.txt,**/*requirements*.in,**/*constraints*.txt,**/*constraints*.in,**/pyproject.toml,**/uv.lock"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue

cache-dependency-glob should be newline-delimited, not comma-separated.

The action expects a single glob or a newline-delimited list. A comma-separated string will be treated as one literal pattern and won’t match the intended files, causing stale caches. Use a block scalar with one glob per line.

Apply this diff:

-        cache-dependency-glob: "**/*requirements*.txt,**/*requirements*.in,**/*constraints*.txt,**/*constraints*.in,**/pyproject.toml,**/uv.lock"
+        cache-dependency-glob: |
+          **/*requirements*.txt
+          **/*requirements*.in
+          **/*constraints*.txt
+          **/*constraints*.in
+          **/pyproject.toml
+          **/uv.lock

Reference: setup-uv v6 docs show newline-delimited examples and defaults for this input. (github.com)

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
cache-dependency-glob: "**/*requirements*.txt,**/*requirements*.in,**/*constraints*.txt,**/*constraints*.in,**/pyproject.toml,**/uv.lock"
cache-dependency-glob: |
**/*requirements*.txt
**/*requirements*.in
**/*constraints*.txt
**/*constraints*.in
**/pyproject.toml
**/uv.lock
🧰 Tools
🪛 YAMLlint (1.37.1)

[error] 23-23: trailing spaces

(trailing-spaces)

🤖 Prompt for AI Agents
.github/actions/setup-project/action.yml around lines 22-23: the
cache-dependency-glob value is currently a comma-separated string which will be
treated as a single literal glob; replace it with a newline-delimited block
scalar containing one glob per line (use YAML pipe | then list each glob on its
own line, no commas) so the action receives multiple patterns correctly and
cache matching works as intended.

Comment on lines +7 to +10
- |
# install uv and uvx
curl -sSf https://astral.sh/uv/install.sh | sh > /dev/null 2>&1 || { echo "${RED}Installation failed!${RESET}" >&2; exit 1; }
export PATH="$HOME/.local/bin:$PATH"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

PATH export here won’t persist to dependent tasks; uv may not be found later.

Exporting PATH inside this command block only affects this shell. Tasks like “install” and “build” run in separate shells and may fail to find uv if ~/.local/bin isn’t already on PATH in the user’s environment. Recommend setting PATH via Taskfile env so all tasks inherit it.

Apply one of the following:

Option A: Set env at the Taskfile root (outside the shown hunk):

version: '3'
env:
  PATH: "{{.PATH}}:$HOME/.local/bin"
tasks:
  # ...

Option B: Set env per task:

tasks:
  uv:
    desc: Install uv and uvx
    env:
      PATH: "{{.PATH}}:$HOME/.local/bin"
    cmds:
      - |
        # install uv and uvx
        curl -sSf https://astral.sh/uv/install.sh | sh > /dev/null 2>&1 || { echo "${RED}Installation failed!${RESET}" >&2; exit 1; }
  install:
    deps: [uv]
    env:
      PATH: "{{.PATH}}:$HOME/.local/bin"
  build:
    deps: [install]
    env:
      PATH: "{{.PATH}}:$HOME/.local/bin"
🤖 Prompt for AI Agents
In .github/taskfiles/build.yml around lines 7 to 10, exporting PATH inside the
inline shell only affects that shell so later tasks won't see ~/.local/bin; move
the PATH export into Taskfile env so all tasks inherit it. Either add an env
block at the Taskfile root setting PATH to "{{.PATH}}:$HOME/.local/bin" so every
task gets the updated PATH, or add an env block to each affected task (uv,
install, build) with PATH: "{{.PATH}}:$HOME/.local/bin"; remove the inline
export line from the command block once env is set.

@tschm tschm merged commit 193cd2c into main Aug 27, 2025
9 checks passed
@tschm tschm deleted the sync/update-configs branch August 27, 2025 06:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant