Skip to content

Commit

Permalink
Script to run pre-commit hooks locally (NVIDIA#969)
Browse files Browse the repository at this point in the history
* Add example of formatting files locally

Signed-off-by: Kirthi Shankar Sivamani <[email protected]>

* review

Signed-off-by: Kirthi Shankar Sivamani <[email protected]>

---------

Signed-off-by: Kirthi Shankar Sivamani <[email protected]>
  • Loading branch information
ksivaman authored Jun 26, 2024
1 parent 46bc37d commit 7326af9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions qa/format.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright (c) 2022-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# See LICENSE for license information.

# Utility file to run pre-commit hooks locally
# Usage: bash qa/format.sh

set -e

: "${TE_PATH:=.}"

cd $TE_PATH

pip install pre-commit
pre-commit run --all-files

0 comments on commit 7326af9

Please sign in to comment.