Add lintrunner pre-commit hook#18689
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/18689
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 2 Unrelated FailuresAs of commit 93af227 with merge base afc9989 ( NEW FAILURE - The following job has failed:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
Summary: Run lintrunner automatically on every commit via .githooks/pre-commit. Hooks are enabled by default through install_executorch.sh. Test Plan: Verified lint violations block commits and clean files pass.
c2d602a to
298865a
Compare
Add lintrunner pre-commit hook
Summary:
Run lintrunner automatically on every commit via .githooks/pre-commit.
Hooks are enabled by default through install_executorch.sh.
Test Plan:
.lintrunner.tomlmissing: warns and skipslintrunner init, stores hash.lintrunner.tomlmodified: re-runs initlintrunner initfails: blocks commitsha256sum/shasumproduce same hash