Conversation
ec2ebe4 to
622cc9e
Compare
622cc9e to
630b3db
Compare
d7d777b to
8039fad
Compare
|
well seems that the ISORT and YAPF configuration yield in inconsistent imports formatting 😕 |
|
@Borda yes I see that also :( |
48f6980 to
f78ff51
Compare
ok, found and motion which works for both - 5 - Hanging Grid Grouped from third_party import (
lib1, lib2, lib3, lib4,
lib5, ...
)@glenn-jocher mind checking if this is fine with you? :] |
|
@glenn-jocher @kalenmike can we merge this one? :] |
|
@glenn-jocher I would rather go with |
|
@glenn-jocher resolved conflicts, so shall be ready to go... 🐰 |
|
@glenn-jocher any update on this format cleaning PR? 😕 |
|
@glenn-jocher pls ping 🐰 ^^ |
|
@glenn-jocher Happy New Year 🎉 |
|
@glenn-jocher all resolved, I may suggest getting it to merge and you can experiment with other formations in a follow-up PR? :) |
|
@glenn-jocher all shall be fixed now 🐰 |
|
@glenn-jocher still an ongoing discussion? 🐰 |
|
@glenn-jocher never-ending resolving conflicts become quite annoying... 😕 |
087cb4f to
ec80d20
Compare
|
@Borda ok I think I have a good set of yapf arguments now. PyCharm reformat accepts the yapf reformat without conflicts. |
perfect! |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
|
@Borda PR is merged. Thank you for your contributions to YOLOv5 🚀 and Vision AI ⭐ |
* precommit: yapf * align isort * fix # Conflicts: # utils/plots.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update setup.cfg * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update setup.cfg * Update setup.cfg * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update wandb_utils.py * Update augmentations.py * Update setup.cfg * Update yolo.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update val.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * simplify colorstr * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * val run fix * export.py last comma * Update export.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update hubconf.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * PyTorch Hub tuple fix * PyTorch Hub tuple fix2 * PyTorch Hub tuple fix3 * Update setup Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
use YAPF as default codebase formatting
Resolves #4983
Alternative to, closes #5490
This PR defines YAPF as pre-commit hook and lets the bot fix it... rabbit
🛠️ PR Summary
Made with ❤️ by Ultralytics Actions
🌟 Summary
Code improvements and bug fixes to enhance YOLOv5's functionalities.
📊 Key Changes
.pre-commit-config.yaml.detect.pyfunction definitions for better readability.export.pyfor readability and standardized export formats.hubconf.py,models/common.py, andmodels/experimental.py.🎯 Purpose & Impact