forked from wang-xinyu/tensorrtx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pre-commit check and contribution doc (wang-xinyu#1459)
* remove blank * Update pre-commit.yml * Update pre-commit.yml * code style * add contribution.md * add contribution.md
- Loading branch information
1 parent
1125a64
commit a5f84f6
Showing
5 changed files
with
128 additions
and
88 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
# grab the history of the PR | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v3 | ||
- uses: pre-commit/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# How to make contribution | ||
|
||
1. Fork this repo to your github account | ||
|
||
2. Clone your fork | ||
|
||
3. Create a feature branch | ||
|
||
4. Make changes, including but not limited to create new model, bug fix, documentation, tutorials, etc. | ||
|
||
5. Pre-commit check and push, we use clang-format to do coding style checking, and the coding style is following google c++ coding style with 4-space. | ||
|
||
``` | ||
pip install pre-commit | ||
pip install clang-format | ||
cd tensorrtx/ | ||
git add [files-to-commit] | ||
pre-commit run | ||
# fix pre-commit errors, then git add files-to-commit again | ||
git add [files-to-commit] | ||
git commit -m "describe your commit" | ||
git push origin [feature-branch] | ||
``` | ||
|
||
6. Submit a pull-request on github web UI to master branch of wang-xinyu/tensorrtx. |
Oops, something went wrong.