File tree Expand file tree Collapse file tree 3 files changed +119
-111
lines changed
Expand file tree Collapse file tree 3 files changed +119
-111
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ is_formatter = true
122122[[linter ]]
123123code = ' MYPY'
124124include_patterns = [
125+ ' setup.py' ,
125126 ' torch/**/*.py' ,
126127 ' torch/**/*.pyi' ,
127128 ' caffe2/**/*.py' ,
Original file line number Diff line number Diff line change @@ -57,17 +57,15 @@ setup-env-cuda:
5757setup-env-rocm :
5858 $(MAKE ) setup-env PYTHON=" $( PYTHON) " NIGHTLY_TOOL_OPTS=" $( NIGHTLY_TOOL_OPTS) --rocm"
5959
60- .lintbin/.lintrunner.sha256 : requirements.txt pyproject.toml .lintrunner.toml
60+ .PHONY : setup-lint
61+ setup-lint .lintbin/.lintrunner.sha256 : requirements.txt pyproject.toml .lintrunner.toml
6162 @echo " Setting up lintrunner..."
6263 $(PIP ) install lintrunner
6364 lintrunner init
6465 @echo " Generating .lintrunner.sha256..."
6566 @mkdir -p .lintbin
6667 @sha256sum requirements.txt pyproject.toml .lintrunner.toml > .lintbin/.lintrunner.sha256
6768
68- .PHONY : setup-lint
69- setup-lint : .lintbin/.lintrunner.sha256
70-
7169.PHONY : lazy-setup-lint
7270lazy-setup-lint : .lintbin/.lintrunner.sha256
7371 @if [ ! -x " $( shell command -v lintrunner) " ]; then \
You can’t perform that action at this time.
0 commit comments