Skip to content

chore: keep task uv cache local#40

Merged
KooshaPari merged 1 commit into
mainfrom
chore/taskfile-uv-cache-clean
Apr 28, 2026
Merged

chore: keep task uv cache local#40
KooshaPari merged 1 commit into
mainfrom
chore/taskfile-uv-cache-clean

Conversation

@KooshaPari
Copy link
Copy Markdown
Owner

@KooshaPari KooshaPari commented Apr 28, 2026

User description

Co-authored-by: Codex noreply@openai.com

Note

Low Risk
Low risk: task automation only; main behavior change is where uv stores its cache, which could affect build performance or disk usage but not runtime code.

Overview
Updates Taskfile.yml to set UV_CACHE_DIR under {{.ROOT_DIR}}/.task-cache/uv and passes it to all uv build/run commands used for Python build, tests, and lint.

Extends task clean to also remove the new .task-cache directory so local uv caches are wiped with other generated artifacts.

Reviewed by Cursor Bugbot for commit 3c67fc8. Bugbot is set up for automated code reviews on this repo. Configure here.


CodeAnt-AI Description

Keep Python task cache files inside the repo and remove them during cleanup

What Changed

  • Python build, test, and lint tasks now store uv cache files under a project-local .task-cache/uv folder
  • task clean now removes the new .task-cache folder along with other generated files
  • Rust task behavior is unchanged

Impact

✅ Easier local cleanup
✅ Less cache left outside the repo
✅ More predictable task runs

🔄 Retrigger CodeAnt AI Review

Details

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

Co-authored-by: Codex <noreply@openai.com>
@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented Apr 28, 2026

CodeAnt AI is reviewing your PR.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 28, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 5c56949e-f8e0-41f5-9dc1-11453338a5df

📥 Commits

Reviewing files that changed from the base of the PR and between 5f271a6 and 3c67fc8.

📒 Files selected for processing (1)
  • Taskfile.yml

📝 Walkthrough

Walkthrough

Taskfile.yml is updated to define a dedicated uv cache directory at .task-cache/uv and applies it to Python build, test, and lint operations via the UV_CACHE_DIR variable. The clean task is extended to remove this cache directory.

Changes

Cohort / File(s) Summary
Taskfile Configuration
Taskfile.yml
Added UV_CACHE_DIR variable pointing to .task-cache/uv. Updated build, test, and lint tasks to use this cache directory. Extended clean task to remove .task-cache directory.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested labels

size:M

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/taskfile-uv-cache-clean
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch chore/taskfile-uv-cache-clean

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@KooshaPari KooshaPari merged commit d861220 into main Apr 28, 2026
7 of 8 checks passed
@KooshaPari KooshaPari deleted the chore/taskfile-uv-cache-clean branch April 28, 2026 18:12
@sonarqubecloud
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot added the size:M This PR changes 30-99 lines, ignoring generated files label Apr 28, 2026
@codeant-ai codeant-ai Bot added the size:XS This PR changes 0-9 lines, ignoring generated files label Apr 28, 2026
@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented Apr 28, 2026

CodeAnt AI finished reviewing your PR.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.

Reviewed by Cursor Bugbot for commit 3c67fc8. Configure here.

Comment thread Taskfile.yml
vars:
ROOT_DIR:
sh: git rev-parse --show-toplevel
UV_CACHE_DIR: "{{.ROOT_DIR}}/.task-cache/uv"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

New cache directory not added to .gitignore

Low Severity

The new .task-cache/uv directory created by uv inside the repository is not listed in .gitignore. After running any of the updated task targets, the cache contents (potentially many wheels and large files) will appear as untracked in git status and could be accidentally added to commits. Adding .task-cache/ to .gitignore would keep the working tree clean.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 3c67fc8. Configure here.

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 5, 2026

CodeAnt AI is running the review.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai codeant-ai Bot added size:XS This PR changes 0-9 lines, ignoring generated files and removed size:M This PR changes 30-99 lines, ignoring generated files size:XS This PR changes 0-9 lines, ignoring generated files labels May 5, 2026
@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 5, 2026

Sequence Diagram

This PR updates task-based Python build, test, and lint flows so uv uses a project-local cache directory, and ensures the cache is removed when running the clean task.

sequenceDiagram
    participant Dev
    participant TaskRunner
    participant PythonProject
    participant LocalCache

    Dev->>TaskRunner: Run build or test or lint task
    TaskRunner->>PythonProject: Invoke uv build or run with UV_CACHE_DIR under project root
    PythonProject->>LocalCache: Read and write uv cache files

    Dev->>TaskRunner: Run clean task
    TaskRunner->>LocalCache: Delete .task-cache directory under project root
Loading

Generated by CodeAnt AI

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 5, 2026

CodeAnt AI finished running the review.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 5, 2026

CodeAnt AI is running the review.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai codeant-ai Bot added size:XS This PR changes 0-9 lines, ignoring generated files and removed size:XS This PR changes 0-9 lines, ignoring generated files labels May 5, 2026
@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 5, 2026

Sequence Diagram

This PR updates task automation so Python build, test, and lint commands run uv with a cache directory inside the repo, and ensures task clean removes that local cache folder.

sequenceDiagram
    participant Developer
    participant TaskRunner
    participant PythonTasks
    participant UvTool
    participant LocalCache

    Developer->>TaskRunner: Run python build or test or lint
    TaskRunner->>PythonTasks: Execute python tasks via Taskfile
    PythonTasks->>UvTool: Call uv build or run with UV_CACHE_DIR in repo
    UvTool->>LocalCache: Store and reuse cache under .task-cache

    Developer->>TaskRunner: Run task clean
    TaskRunner->>LocalCache: Remove .task-cache directory
Loading

Generated by CodeAnt AI

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 5, 2026

CodeAnt AI finished running the review.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant