mikepapadim opened a new pull request #8382:
URL: https://github.com/apache/tvm/pull/8382


   This PR adds a pre-commit hook configuration file.
   This configuration aims to encourage running the sanity checks on Jenkins, 
locally prior to committing. 
   
   How to install:
   ```pip install pre-commit```
   ```pre-commit install```
   
   
   This pre-commit configuration will run the following checks on each `git 
commit`:
   ```
   Check for added large files..........................(no files to 
check)Skipped
   Check for merge conflicts............................(no files to 
check)Skipped
   Check Yaml...........................................(no files to 
check)Skipped
   Fix End of Files.....................................(no files to 
check)Skipped
   Trim Trailing Whitespace.............................(no files to 
check)Skipped
   Running Minimal Unit-Tests 
..............................................Passed
   Running 
Black............................................................Passed
   Checking File 
Types......................................................Passed
   Checking ASF License Headers 
............................................Passed
   Linting the C++ code ................................(no files to 
check)Skipped
   Checking Clang format ...............................(no files to 
check)Skipped
   Type Checking with MyPY 
.................................................Passed
   ```
   
   Also, as WIP branches tend to fail tests on early stages of development the 
above-mentioned checks can be prevented with:
   ``` git commit --no-verify ``` or ```git commit -n ```
   
   **Requirements**: pip3 install cpplint pylint==2.4.4 mypy==0.902 
black==20.8b1 pre-commit==2.3.0
   
   @hogepodge @areusch @jroesch @jcf94 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to