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. ❌ 6 New Failures, 4 Unrelated FailuresAs of commit 298865a with merge base 1e9bd73 ( NEW FAILURES - The following jobs have failed:
FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
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