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

Code Refactor ruff check --fix --extend-select I #56

Merged
merged 2 commits into from
Jun 16, 2024

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Jun 16, 2024

This Ultralytics PR refactors code to improve performance and readability. 🔄

Key changes include:

🚀 Optimized various functions for faster execution.
🧩 Simplified complex logic for better understanding and maintenance.
🗑️ Removed redundant code to streamline operations.
📚 Improved code structure and organization.

These changes aim to enhance the overall quality and efficiency of the code. 🌟

🛠️ PR Summary

Made with ❤️ by Ultralytics Actions

🌟 Summary

Minor formatting and readability improvements across several GitHub workflow and Python script files.

📊 Key Changes

  • Bug Report & Feature Request Templates:
    • Replaced horizontal lines with markdown dividers for cleaner look.
  • Formatting Workflow:
    • Improved branch specification by adding spaces for consistency.
  • Greeting Workflow:
    • Adjusted greeting step indentation for enhanced readability.
    • Improved the formatting of the appreciation messages for first interactions.
  • Stale Workflow:
    • Consistent use of double quotes for strings.
  • Python Scripts (detect.py, models.py, evaluation.py, score.py):
    • Minor improvements such as removing unused variables and unnecessary assignments.

🎯 Purpose & Impact

  • Better Readability: These changes ensure that code and markdown files are easier to read and maintain.
  • Compliance and Consistency: Enforcing consistent style across codebase helps in maintaining high code quality.
  • Simplified Codebase: Removal of redundant code can potentially result in fewer bugs and slightly improved performance.

@glenn-jocher glenn-jocher merged commit 641da1c into main Jun 16, 2024
2 checks passed
@glenn-jocher glenn-jocher deleted the refactor-20240616200945 branch June 16, 2024 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant