Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pytest init options #46

Merged
merged 1 commit into from
Jan 2, 2025
Merged

Add pytest init options #46

merged 1 commit into from
Jan 2, 2025

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Jan 1, 2025

๐Ÿ› ๏ธ PR Summary

Made with โค๏ธ by Ultralytics Actions

๐ŸŒŸ Summary

Enhanced testing configuration for improved development workflows. ๐Ÿ› ๏ธโœจ

๐Ÿ“Š Key Changes

  • Added new pytest options:
    • --doctest-modules for testing code examples in documentation.
    • --durations=30 to display the 30 slowest tests, aiding in performance optimization.
    • --color=yes to enable color output for better readability.
  • Excluded certain directories (.git, dist, build) from pytest recursion to avoid unnecessary scanning.

๐ŸŽฏ Purpose & Impact

  • Ensures documentation examples are tested, improving reliability and reducing errors. ๐Ÿ“–โœ…
  • Identifies slow tests, enabling developers to optimize performance. ๐Ÿš€
  • Enhances the developer experience with more readable test output and avoids scanning irrelevant directories for efficiency. ๐ŸŽจ๐Ÿ’ก

Signed-off-by: Glenn Jocher <[email protected]>
@UltralyticsAssistant UltralyticsAssistant added devops GitHub Devops or MLops enhancement New feature or request labels Jan 1, 2025
@UltralyticsAssistant
Copy link
Member

๐Ÿ‘‹ Hello @glenn-jocher, thank you for submitting an ultralytics/template ๐Ÿš€ PR! To ensure a seamless integration of your work, please review the following checklist:

  • โœ… Define a Purpose: Clearly explain the purpose of your fix or feature in your PR description, and link to any relevant issues. Ensure your commit messages are clear, concise, and adhere to the project's conventions.
  • โœ… Synchronize with Source: Confirm your PR is synchronized with the ultralytics/template main branch. If it's behind, update it by clicking the 'Update branch' button or by running git pull and git merge main locally.
  • โœ… Ensure CI Checks Pass: Verify all Ultralytics Continuous Integration (CI) checks are passing. If any checks fail, please address the issues.
  • โœ… Update Documentation: Update the relevant documentation for any new or modified features.
  • โœ… Add Tests: If applicable, include or update tests to cover your changes, and confirm that all tests are passing.
  • โœ… Sign the CLA: Please ensure you have signed our Contributor License Agreement if this is your first Ultralytics PR by writing "I have read the CLA Document and I sign the CLA" in a new message.
  • โœ… Minimize Changes: Limit your changes to the minimum necessary for your bug fix or feature addition. "It is not daily increase but daily decrease, hack away the unessential. The closer to the source, the less wastage there is." โ€” Bruce Lee ๐Ÿฅ‹

Your changes to enhance test configurations and improve the visibility and efficiency of tests look great! ๐ŸŽ‰ For more guidance, please refer to our Contributing Guide.

This is an automated response to help you get started, but an Ultralytics engineer will review your PR and provide further assistance soon. Feel free to leave a comment if you have any questions. Thank you for contributing to Ultralytics! ๐Ÿš€

@glenn-jocher glenn-jocher merged commit 9a07705 into main Jan 2, 2025
9 checks passed
@glenn-jocher glenn-jocher deleted the glenn-jocher-patch-1 branch January 2, 2025 10:46
@UltralyticsAssistant
Copy link
Member

๐ŸŒŸ Exciting news: your PR has been merged, @glenn-jocher! ๐Ÿš€

Your thoughtful enhancements to testing configurationsโ€”with smarter pytest options, targeted optimizations, and a boost in developer experienceโ€”are destined to make waves. The ripples of progress, often unseen, are where true innovation begins.

As Leonardo da Vinci once said, "Details make perfection, and perfection is not a detail." Your meticulous contributions are shaping a stronger foundation for us all. Thank you for making a differenceโ€”your work is appreciated today and every day. ๐Ÿ™Œโœจ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devops GitHub Devops or MLops enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants