open-mmlab / mmselfsup

OpenMMLab Self-Supervised Learning Toolbox and Benchmark
https://mmselfsup.readthedocs.io/en/latest/
Apache License 2.0
3.18k stars 428 forks source link

[Enhance] Update pre-commit #685

Closed fangyixiao18 closed 1 year ago

fangyixiao18 commented 1 year ago

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.

Motivation

Refer to https://github.com/open-mmlab/mmeval/pull/85

Modification

Please briefly describe what modification is made in this PR.

BC-breaking (Optional)

Does the modification introduce changes that break the backward compatibility of the downstream repositories? If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.

Use cases (Optional)

If this PR introduces a new feature, it is better to list some use cases here and update the documentation.

Checklist

Before PR:

After PR:

codecov[bot] commented 1 year ago

Codecov Report

Base: 80.64% // Head: 80.66% // Increases project coverage by +0.01% :tada:

Coverage data is based on head (fb9a069) compared to base (f959af9). Patch has no changes to coverable lines.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev-1.x #685 +/- ## =========================================== + Coverage 80.64% 80.66% +0.01% =========================================== Files 141 141 Lines 5089 5089 Branches 671 671 =========================================== + Hits 4104 4105 +1 Misses 850 850 + Partials 135 134 -1 ``` | Flag | Coverage Δ | | |---|---|---| | unittests | `80.66% <ø> (+0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-mmlab#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://codecov.io/gh/open-mmlab/mmselfsup/pull/685?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-mmlab) | Coverage Δ | | |---|---|---| | [mmselfsup/datasets/transforms/processing.py](https://codecov.io/gh/open-mmlab/mmselfsup/pull/685?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-mmlab#diff-bW1zZWxmc3VwL2RhdGFzZXRzL3RyYW5zZm9ybXMvcHJvY2Vzc2luZy5weQ==) | `89.43% <0.00%> (+0.21%)` | :arrow_up: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-mmlab). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-mmlab)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.