Conversation
|
@Borda thanks for the PR! I think Black may be a bit too much for us right now. I actually do like some of the updates, in particular the 0. -> 0.0, and the 1E6 -> 1e6, but others I'd rather skip like listing imports one per line. Is there a way to enable only certain changes, or is Black an all-or-none linter? In the meantime I made a new PR to fix as many 0. -> 0.0 as I could fine using PyCharm search and replace in #5491. |
|
well, an alternative is YAPF (#5494), you can check how it looks like in my personal repo: there is also just |
958bc35 to
7fcb4f6
Compare
444b279 to
3d0dab7
Compare
for more information, see https://pre-commit.ci
|
@Borda closing this to focus on yapf and readme per our convo. Thank you for your contributions to YOLOv5 🚀 and Vision AI ⭐ |
use Black as default codebase formatting
Resolves #4983
This PR defines Black as pre-commit hook and lets the bot fix it... 🐰
🛠️ PR Summary
Made with ❤️ by Ultralytics Actions
WARNING⚠️ this PR is very large, summary may not cover all changes.
🌟 Summary
Summarization of GitHub Pull Request in Ultralytics YOLOv5 repository with code diffs.
📊 Key Changes
🎯 Purpose & Impact