mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
[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:
committed by
PyTorch MergeBot
parent
533b44a280
commit
6cbe9d1f58
30
Makefile
30
Makefile
@ -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
|
||||
|
Reference in New Issue
Block a user