[BE] Explain how to get consistent linter behavior locally (#102990)

Sometimes you'll see linter failures on CI that don't repro locally, caused by the local linter not having installed the latest config.

These instructions explain how to make both the CI and local linter consistent again
Pull Request resolved: https://github.com/pytorch/pytorch/pull/102990
Approved by: https://github.com/huydhn
This commit is contained in:
Zain Rizvi
2023-06-05 22:51:12 +00:00
committed by PyTorch MergeBot
parent 12cd1dbba0
commit 117f9bb847

View File

@@ -55,7 +55,7 @@ jobs:
# Run lintrunner on all files
if ! lintrunner --force-color --all-files --tee-json=lint.json 2> /dev/null; then
echo ""
echo -e "\e[1m\e[36mYou can reproduce these results locally by using \`lintrunner\`.\e[0m"
echo -e "\e[1m\e[36mYou can reproduce these results locally by using \`lintrunner\`. (If you don't get the same results, run \'lintrunner init\' to update your local linter)\e[0m"
echo -e "\e[1m\e[36mSee https://github.com/pytorch/pytorch/wiki/lintrunner for setup instructions.\e[0m"
RC=1
fi