Skip to content

Commit

Permalink
doc: Add pre-commit installation command in CONTRIBUTING.md
Browse files Browse the repository at this point in the history
pre-commit is installed via pip.
If this CONTRIBUTING.md doesn't guide how to install the package,
future contributors cannot know how to download and run the command below.

  $ pre-commit install

So this commit adds pre-commit package installation command in
CONTRIBUTING.md

Signed-off-by: Kang Minchul <[email protected]>
  • Loading branch information
kangtegong authored and honggyukim committed Jul 24, 2022
1 parent 4b3c77c commit ad1e333
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ with the help of [pre-commit](https://pre-commit.com) and
[clang-format](https://clang.llvm.org/docs/ClangFormat.html) so that
our source code has a consistent coding style at all times.

You can install pre-commit as follows.
You need to install pre-commit package but please note that python version 3.7
or higher is required. The installation can be done as follows.

$ python3 -m pip install pre-commit

Then you can simply install a pre-commit hook inside the uftrace source
directory as follows.

$ pre-commit install
pre-commit installed at .git/hooks/pre-commit
Expand Down

0 comments on commit ad1e333

Please sign in to comment.