Update CONTRIBUTING.md

This commit is contained in:
Crystal.Sea 2020-09-22 07:37:05 +08:00
parent 509b74b108
commit fccb63ba30

View File

@ -10,7 +10,7 @@ MaxKey开发中使用到的几种模型在这个链接下载 [点我](https://gi
### Fork ### Fork
* MaxKey采用Pull Request的方式提交代码禁止直接push所有的代码都需要人工review。首先要fork一份Paddle-Moble的代码 ["Fork" button](https://help.github.com/articles/fork-a-repo/). * MaxKey采用Pull Request的方式提交代码禁止直接push所有的代码都需要人工review。首先要fork一份MaxKey-Moble的代码 ["Fork" button](https://help.github.com/articles/fork-a-repo/).
* 跳转到[MaxKey](https://github.com/MaxKeyTop/MaxKey) GitHub首页然后单击 `Fork` 按钮,生成自己目录下的仓库,比如 <https://github.com/你的用户名/MaxKey> * 跳转到[MaxKey](https://github.com/MaxKeyTop/MaxKey) GitHub首页然后单击 `Fork` 按钮,生成自己目录下的仓库,比如 <https://github.com/你的用户名/MaxKey>
### Clone(克隆) ### Clone(克隆)
@ -18,7 +18,7 @@ MaxKey开发中使用到的几种模型在这个链接下载 [点我](https://gi
```bash ```bash
➜ git clone https://github.com/你的用户名/MaxKey ➜ git clone https://github.com/你的用户名/MaxKey
➜ cd Paddle ➜ cd MaxKey
``` ```
### 创建本地分支 ### 创建本地分支
@ -39,7 +39,7 @@ MaxKey 目前使用[Git流分支模型](http://nvie.com/posts/a-successful-git-b
MaxKey 开发人员使用 [pre-commit](http://pre-commit.com/) 工具来管理 Git 预提交钩子。 在提交commit前自动检查一些基本事宜如每个文件只有一个 EOLGit 中不要添加大文件等)。 MaxKey 开发人员使用 [pre-commit](http://pre-commit.com/) 工具来管理 Git 预提交钩子。 在提交commit前自动检查一些基本事宜如每个文件只有一个 EOLGit 中不要添加大文件等)。
`pre-commit`测试是 Travis-CI 中单元测试的一部分,不满足钩子的 PR 不能被提交到 Paddle,首先安装并在当前目录运行它: `pre-commit`测试是单元测试的一部分,不满足钩子的 PR 不能被提交到 MaxKey,首先安装并在当前目录运行它:
```bash ```bash
pip install pre-commit pip install pre-commit