mirror of
https://github.com/zebrajr/pytorch.git
synced 2026-01-15 12:15:51 +00:00
[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:
committed by
PyTorch MergeBot
parent
12cd1dbba0
commit
117f9bb847
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user