TeamUltroid / Ultroid

Advanced Multi-Featured Telegram UserBot, Built in Python Using Telethon lib.
https://ultroid.tech
GNU Affero General Public License v3.0
2.83k stars 7.92k forks source link

feat: Auto-format Python code with Black #429

Closed Dev-Yoko closed 10 months ago

Dev-Yoko commented 1 year ago

feat: Auto-format Python code with Black

Enhance the GitHub Actions workflow to automatically check and format Python code using Black. This workflow checks for code formatting issues and, if needed, formats the codebase to ensure consistency and readability. Additionally, the workflow commits the changes only if there are differences after the formatting process. The workflow triggers on pushes to the main branch, ensuring the codebase remains well-formatted at all times.

xditya commented 10 months ago

Thanks for the PR!

The codes are per-formatted before commits, so this is workflow would be unnecessary.