junrushao commented on PR #14329:
URL: https://github.com/apache/tvm/pull/14329#issuecomment-1493457367

   @LeiWang1999 To run linters locally, below are some commands you may find 
useful:
   
   ```python
   # Assume you are now at TVM's root directory
   
   # Run all linters
   bash ./tests/scripts/task_lint.sh
   # Run python's formatter: black. CI uses black 22.12.0.
   bash ./tests/lint/git-black.sh
   # Run c++'s formatter: clang-format
   bash ./tests/lint/git-clang-format.sh
   # Run whitespace checking, another linter unhappy with your code
   bash ./tests/lint/whitespace.sh
   ```
   
   You might need to ensure the version of black/clang-format are consistent 
with our CI - which can be a bit annoying at times.


-- 
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