wenet-e2e / wespeaker

Research and Production Oriented Speaker Verification, Recognition and Diarization Toolkit
Apache License 2.0
630 stars 109 forks source link

[lint] auto format all by pre-commit, including c++, python #243

Closed cdliang11 closed 8 months ago

cdliang11 commented 8 months ago

follow: https://github.com/wenet-e2e/wenet/pull/2199 Automatic reformat all the old code by pre-commit run --all-files, and then we got

(base) ➜  wespeaker-update git:(chengdong-lint-all) ✗ git commit -m "[lint] auto format all by pre-commit, including c++, python"
trim trailing whitespace.................................................Passed
yapf.....................................................................Passed
flake8...................................................................Passed
clang-format.............................................................Passed
cpplint..................................................................Passed
[chengdong-lint-all 8f49658] [lint] auto format all by pre-commit, including c++, python
 Committer: user01 <user01@user01deMacBook-Pro.local>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:

    git config --global user.name "Your Name"
    git config --global user.email you@example.com

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

 71 files changed, 779 insertions(+), 542 deletions(-)
 create mode 100644 .clang-format