Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the Chinese and English "Contribute Code" documentations. #220

Merged
merged 3 commits into from Jan 29, 2018

Conversation

jetfuel
Copy link
Collaborator

@jetfuel jetfuel commented Jan 27, 2018

covers how to contribute in
#83

@jetfuel jetfuel self-assigned this Jan 27, 2018
pre-commit install
```

Our pre-commit configuration requires [clang-format 3.8](http://releases.llvm.org/download.html) for auto-formating C/C++ code and yapf for Python.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some linux builds, they can also get it via "apt install clang-format-3.8" or "apt-get install clang-format-3.8"

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also we use both yapf for auto format, and flake8 for python style checking (yapf does not do a good job of stripping unused imports and other PEP8 requirements).


1. Commit

Before issuing your first `git commit` command, please install [`pre-commit`](http://pre-commit.com/) by running the following commands:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They should install "pip install -r requirements.txt" first

```

Our pre-commit configuration requires [clang-format 3.8](http://releases.llvm.org/download.html) for auto-formating C/C++ code and yapf for Python.
Please download it and put it to ```/usr/local/bin```
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Please make sure clang-format version 3.8 is available in your path"

Copy link
Collaborator

@cs2be cs2be left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, can you add it to sphinx documentation

@jetfuel jetfuel merged commit 5ce3d2b into PaddlePaddle:develop Jan 29, 2018
@jetfuel jetfuel deleted the addContributeCodeDocumations branch January 29, 2018 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants