Is pre-commit a mandatory requirement?

Dear TVM community,

I have a personal project using tracking upstream TVM source and I found there are PRs not running checks defined in .pre-commit.yaml.

I couldn’t find a strict condition from contributor’s guide and wonder if you plan to hard apply in the future.

Thank you in advance.

The pre-commit tooling is there to many your local development easier. When PRs are submitted the CI will run a superset of these checks (defined here https://github.com/apache/tvm/blob/main/tests/scripts/task_lint.sh) to ensure the code in the PR passes and code that doesn’t pass these checks can’t get merged. As a rule only what happens in CI matters for PRs, so don’t worry about having to run certain things locally before submitting a PR. The pre-commit setup helps you replicate these checks locally in case there are problems.