chore: harden Taskfile common tasks#39
Conversation
Co-authored-by: Codex <noreply@openai.com>
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
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 · |
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
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. Comment |
|
|
CodeAnt AI finished reviewing your PR. |
|
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 · |
Sequence DiagramThis PR updates the Taskfile to more safely detect Python projects, clearly report them to the user, and only run Python tests and linting when appropriate with required tool dependencies. sequenceDiagram
participant Developer
participant Task
participant Filesystem
participant PythonProjects
Developer->>Task: Run detect
Task->>Filesystem: Find pyproject files excluding git venv and target
Filesystem-->>Task: Discovered Python projects
Task-->>Developer: Show detected languages and Python project list with opt in hint
Developer->>Task: Run test or lint
Task->>PythonProjects: For each active Python project check for top level tests
alt Tests found
Task->>PythonProjects: Run pytest and ruff via uv with required dependencies
else No tests
Task-->>Developer: Skip Python checks for project and print skip message
end
Generated by CodeAnt AI |
|
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 · |
|
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 · |
Sequence DiagramThis PR hardens the Taskfile Python workflows by improving project discovery, always showing detected Python projects in the detect command, and running Python tests and lint only when top-level tests exist, using uv to ensure pytest and ruff are available. sequenceDiagram
participant Developer
participant TaskRunner
participant PythonProjects
participant PyTools
Developer->>TaskRunner: Run task detect
TaskRunner->>PythonProjects: Discover pyproject files excluding git, venv, target
PythonProjects-->>TaskRunner: Python project list
TaskRunner-->>Developer: Show detected languages and Python projects
alt Python not included in build test lint
TaskRunner-->>Developer: Show TASK_INCLUDE_PYTHON hint
end
Developer->>TaskRunner: Run task test and task lint
TaskRunner->>PythonProjects: Resolve active Python projects
loop Each active Python project
TaskRunner->>PyTools: Check for top-level tests
alt Top-level tests present
PyTools->>PyTools: Run tests and lint via uv run with pytest and ruff
else No top-level tests
TaskRunner-->>Developer: Skip Python tests for project
end
end
Generated by CodeAnt AI |
|
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 · |



User description
Co-authored-by: Codex noreply@openai.com
Note
Medium Risk
Changes repo-wide build/test/lint automation, including Python project discovery and when pytest runs, which could inadvertently skip checks or change CI behavior.
Overview
Improves Taskfile Python handling by excluding
.git,.venv, andtargetdirectories frompyproject.tomldiscovery and by makingtask detectalways print the discovered Python projects (with an opt-in hint viaTASK_INCLUDE_PYTHON=1).Hardens Python execution by running
pytestonly when a project appears to have top-level tests (otherwise skipping with a message) and by invoking tools viauv run --with pytest/ruffto ensure dependencies are available when runningtestandlint.Reviewed by Cursor Bugbot for commit 9a2c22b. Bugbot is set up for automated code reviews on this repo. Configure here.
CodeAnt-AI Description
Show detected Python projects and avoid running Python checks when they have no top-level tests
What Changed
task detectnow lists each discovered Python project and only shows the opt-in note when Python projects are not included in build, test, and lint runs.git,.venv, andtargetfolders so local and generated directories are not treated as projectstask testskips Python projects without top-level tests and prints a clear skip message instead of running pytest anywayImpact
✅ Clearer project detection✅ Fewer unnecessary Python test runs✅ Fewer lint and test failures from missing tools🔄 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:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
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:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
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.