PaddleSpeech icon indicating copy to clipboard operation
PaddleSpeech copied to clipboard

paddlespeech 提交代码须知

Open yt605155624 opened this issue 1 year ago • 0 comments

Discussed in https://github.com/PaddlePaddle/PaddleSpeech/discussions/1326

Originally posted by yt605155624 January 12, 2022

  1. 写完代码之后可以用我们的 pre-commit 检查一下代码格式,注意只改自己修改的代码的格式即可,其他的代码有可能也被改了格式,不要 add 就好
pip install pre-commit
pre-commit run --file 你修改的代码
  1. 提交 commit 中增加必要信息跳过不必要的 CI
  • 提交 asr 相关代码
git commit -m "xxxxxx, test=asr"
  • 提交 tts 相关代码
git commit -m "xxxxxx, test=tts"
  • 仅修改文档
git commit -m "xxxxxx, test=doc"

注意:

  1. 虽然跳过了 CI,但是还要先排队排到才能跳过,所以非自己方向看到 pending 不要着急 🤣
  2. git commit --amend 的时候才加 test=xxx 可能不太有效
  3. 一个 pr 多次提交 commit 注意每次都要加 test=xxx,因为每个 commit 都会触发 CI

yt605155624 avatar Aug 30 '22 02:08 yt605155624