[ci] delete old linter stuff

lintrunner has been running for a while, so delete redundant linter
things

Pull Request resolved: https://github.com/pytorch/pytorch/pull/76984

Approved by: https://github.com/janeyx99
This commit is contained in:
Michael Suo
2022-05-11 00:18:46 -07:00
committed by PyTorch MergeBot
parent 533b44a280
commit 6cbe9d1f58
28 changed files with 2 additions and 3629 deletions

View File

@ -22,38 +22,12 @@ linecount:
echo "Cloc is not available on the machine. You can install cloc with " && \
echo " sudo apt-get install cloc"
shellcheck:
@$(PYTHON) tools/actions_local_runner.py \
--file .github/workflows/lint.yml \
--job 'workflow-checks' \
--step "Regenerate workflows"
@$(PYTHON) tools/actions_local_runner.py \
--file .github/workflows/lint.yml \
--job 'workflow-checks' \
--step "Assert that regenerating the workflows didn't change them"
setup_lint:
$(PIP) install lintrunner
lintrunner init
$(PYTHON) -mpip install jinja2 --user
quick_checks:
# TODO: This is broken when 'git config submodule.recurse' is 'true' since the
# lints will descend into third_party submodules
@$(PYTHON) tools/actions_local_runner.py \
--file .github/workflows/lint.yml \
--job 'quick-checks' \
--step 'Ensure no versionless Python shebangs'
toc:
@$(PYTHON) tools/actions_local_runner.py \
--file .github/workflows/lint.yml \
--job 'toc' \
--step "Regenerate ToCs and check that they didn't change"
lint: quick_checks shellcheck
lint:
lintrunner
quicklint: CHANGED_ONLY=--changed-only
quicklint: quick_checks shellcheck
quicklint:
lintrunner