-
Notifications
You must be signed in to change notification settings - Fork 629
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
Add the Chinese and English "Contribute Code" documentations. #220
Conversation
docs/contribute_code_en.md
Outdated
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. |
There was a problem hiding this comment.
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"
There was a problem hiding this comment.
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).
docs/contribute_code_en.md
Outdated
|
||
1. Commit | ||
|
||
Before issuing your first `git commit` command, please install [`pre-commit`](http://pre-commit.com/) by running the following commands: |
There was a problem hiding this comment.
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
docs/contribute_code_en.md
Outdated
``` | ||
|
||
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``` |
There was a problem hiding this comment.
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"
There was a problem hiding this 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
covers how to contribute in
#83