1 Star 15 Fork 3

menty / wenet

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CONTRIBUTING.md 974 Bytes
一键复制 编辑 原始数据 按行查看 历史
jschenxiaoyu 提交于 2021-02-24 17:48 . [doc] update CONTRIBUTING.md (#183)

Contributing guidelines

Pre-commit tidy/linting hook

You'll need to install flake8 first.

pip install flake8==3.8.2

We use flake8 to perform additional formatting and semantic checking of code. We provide a pre-commit git hook for performing these checks, before a commit is created:

ln -s ../../tools/git-pre-commit .git/hooks/pre-commit

You have to execute above command in wenet project root directory. After that, each commit will be checked by flake8.

If you do not set pre-commit, just run flake8 in wenet project root directory and fix all the problems.

Github checks

After a pull request is submitted, some checks will run to check your code style.

Below is an example where some checks fail.

github checks

You need to click the details to see the detailed info like the example below.

github checks

You have to fix all style problems according to the detailed info.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/menty/wenet.git
git@gitee.com:menty/wenet.git
menty
wenet
wenet
main

搜索帮助

344bd9b3 5694891 D2dac590 5694891