Skip to content

fix: Fix Ruff, MyPy, and PyTest Errors#159

Merged
rdheekonda merged 30 commits intomainfrom
users/raja/fix-pre-commit-errors
Sep 5, 2025
Merged

fix: Fix Ruff, MyPy, and PyTest Errors#159
rdheekonda merged 30 commits intomainfrom
users/raja/fix-pre-commit-errors

Conversation

@rdheekonda
Copy link
Contributor

@rdheekonda rdheekonda commented Sep 3, 2025

Fix Ruff and MyPy Errors.

Generated Summary:

  • Added imports for metrics logging, task span, and scoring in the agent.py file.
  • Removed unnecessary local imports from several methods in Agent and TaskAgent classes, improving code cleanliness.
  • Updated context error checking in summarize.py to streamline imports.
  • Simplified import logic for image processing in image.py by importing required libraries directly rather than conditionally.
  • Enhanced the planning.py and reporting.py with direct imports for logging, promoting better organization.
  • Ensured that functions like finish_task and give_up_on_task consistently log metrics, which could assist in troubleshooting and performance monitoring.
  • Overall, these changes reduce import overhead and enhance the clarity and maintainability of the codebase.

This summary was generated with ❤️ by rigging

@rdheekonda rdheekonda changed the title fix: Fix Ruff and MyPy Errors fix: [Do Not Merge] Fix Ruff and MyPy Errors Sep 3, 2025
@dreadnode-renovate-bot dreadnode-renovate-bot bot added the area/pre-commit Changes made to pre-commit hooks label Sep 3, 2025
@dreadnode-renovate-bot dreadnode-renovate-bot bot added the area/python Changes to Python package configuration and dependencies label Sep 4, 2025
@rdheekonda rdheekonda changed the title fix: [Do Not Merge] Fix Ruff and MyPy Errors fix: Fix Ruff, MyPy, and PyTest Errors Sep 4, 2025
@rdheekonda rdheekonda merged commit e545e2e into main Sep 5, 2025
9 checks passed
@briangreunke
Copy link
Contributor

🙏 @rdheekonda

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

Labels

area/pre-commit Changes made to pre-commit hooks area/python Changes to Python package configuration and dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants