Repository: pytorch
Issue: lintrunner not working
Labels: module: lint,triaged

### 🐛 Describe the bug

On this commit https://github.com/pytorch/pytorch/commit/a98bb228552beacc173bdf93a150dd611b65707e running lintrunner locally did not catch black problems, even though there are problems.

```
(base) ezyang-mbp:pytorch ezyang$ lintrunner -a -vv
[2022-05-11T14:37:44Z DEBUG lintrunner::lint_config] Found linters: {"SHELLCHECK", "FLAKE8", "ACTIONLINT", "NOQA", "TESTOWNERS", "SPACES", "INCLUDE", "MYPYSTRICT", "CIRCLECI", "EXEC", "MYPY", "PYPIDEP", "NEWLINE", "TYPEIGNORE", "CUBINCLUDE", "CMAKE", "CLANGTIDY", "NATIVEFUNCTIONS", "BLACK", "TABS", "RAWCUDA", "CLANGFORMAT"}
[2022-05-11T14:37:44Z DEBUG lintrunner] Running linters: ["FLAKE8", "CLANGFORMAT", "MYPY", "MYPYSTRICT", "CLANGTIDY", "TYPEIGNORE", "NOQA", "CIRCLECI", "NATIVEFUNCTIONS", "NEWLINE", "SPACES", "TABS", "INCLUDE", "PYPIDEP", "EXEC", "CUBINCLUDE", "RAWCUDA", "CMAKE", "SHELLCHECK", "ACTIONLINT", "TESTOWNERS", "BLACK"]
[2022-05-11T14:37:44Z TRACE lintrunner::log_utils] Linting commit diff files: {".lintrunner.toml", "torch/_prims/executor.py", "torch/_prims/utils.py"}
[2022-05-11T14:37:44Z TRACE lintrunner::log_utils] Linting working tree diff files: {}
[2022-05-11T14:37:44Z TRACE lintrunner::log_utils] Linting files: [/Users/ezyang/Dev/pytorch/.lintrunner.toml, /Users/ezyang/Dev/pytorch/torch/_prims/executor.py, /Users/ezyang/Dev/pytorch/torch/_prims/utils.py]
[2022-05-11T14:37:44Z TRACE lintrunner::log_utils] Linter 'CLANGFORMAT' matched files: []
[2022-05-11T14:37:44Z TRACE lintrunner::log_utils] Linter 'MYPYSTRICT' matched files: []
[2022-05-11T14:37:44Z TRACE lintrunner::log_utils] Linter 'FLAKE8' matched files: [/Users/ezyang/Dev/pytorch/torch/_prims/executor.py, /Users/ezyang/Dev/pytorch/torch/_prims/utils.py]
[2022-05-11T14:37:44Z TRACE lintrunner::log_utils] Linter 'TYPEIGNORE' matched files: [/Users/ezyang/Dev/pytorch/torch/_prims/executor.py, /Users/ezyang/Dev/pytorch/torch/_prims/utils.py]
[2022-05-11T14:37:44Z TRACE lintrunner::log_utils] Linter 'CLANGTIDY' matched files: []
[2022-05-11T14:37:44Z TRACE lintrunner::log_utils] Linter 'MYPY' matched files: [/Users/ezyang/Dev/pytorch/torch/_prims/executor.py, /Users/ezyang/Dev/pytorch/torch/_prims/utils.py]
[2022-05-11T14:37:44Z TRACE lintrunner::log_utils] Linter 'CIRCLECI' matched files: []
[2022-05-11T14:37:44Z TRACE lintrunner::log_utils] Linter 'NOQA' matched files: [/Users/ezyang/Dev/pytorch/torch/_prims/executor.py, /Users/ezyang/Dev/pytorch/torch/_prims/utils.py]
[2022-05-11T14:37:44Z TRACE lintrunner::log_utils] Linter 'NEWLINE' matched files: [/Users/ezyang/Dev/pytorch/.lintrunner.toml, /Users/ezyang/Dev/pytorch/torch/_prims/executor.py, /Users/ezyang/Dev/pytorch/torch/_prims/utils.py]
[2022-05-11T14:37:44Z TRACE lintrunner::log_utils] Linter 'SPACES' matched files: [/Users/ezyang/Dev/pytorch/.lintrunner.toml, /Users/ezyang/Dev/pytorch/torch/_prims/executor.py, /Users/ezyang/Dev/pytorch/torch/_prims/utils.py]
[2022-05-11T14:37:44Z TRACE lintrunner::log_utils] Linter 'TABS' matched files: [/Users/ezyang/Dev/pytorch/torch/_prims/executor.py, /Users/ezyang/Dev/pytorch/torch/_prims/utils.py]
[2022-05-11T14:37:44Z TRACE lintrunner::log_utils] Linter 'NATIVEFUNCTIONS' matched files: []
[2022-05-11T14:37:44Z TRACE lintrunner::log_utils] Linter 'PYPIDEP' matched files: []
[2022-05-11T14:37:44Z TRACE lintrunner::log_utils] Linter 'CUBINCLUDE' matched files: []
[2022-05-11T14:37:44Z TRACE lintrunner::log_utils] Linter 'EXEC' matched files: [/Users/ezyang/Dev/pytorch/.lintrunner.toml]
[2022-05-11T14:37:44Z TRACE lintrunner::log_utils] Linter 'TESTOWNERS' matched files: []
[2022-05-11T14:37:44Z TRACE lintrunner::log_utils] Linter 'BLACK' matched files: [/Users/ezyang/Dev/pytorch/torch/_prims/executor.py, /Users/ezyang/Dev/pytorch/torch/_prims/utils.py]
[2022-05-11T14:37:44Z TRACE lintrunner::log_utils] Linter 'RAWCUDA' matched files: []
[2022-05-11T14:37:44Z TRACE lintrunner::log_utils] Linter 'CMAKE' matched files: []
[2022-05-11T14:37:44Z TRACE lintrunner::log_utils] Linter 'INCLUDE' matched files: []
[2022-05-11T14:37:44Z TRACE lintrunner::log_utils] Linter 'SHELLCHECK' matched files: []
[2022-05-11T14:37:44Z TRACE lintrunner::log_utils] Linter 'ACTIONLINT' matched files: []
[2022-05-11T14:37:44Z DEBUG lintrunner::linter] Running linter EXEC: python3 tools/linter/adapters/exec_linter.py -- @/var/folders/11/bcmcs8d57q7dxbysb4w_h1ym0000gn/T/.tmpfNRg5O
[2022-05-11T14:37:44Z DEBUG lintrunner::linter] Running linter NEWLINE: python3 tools/linter/adapters/newlines_linter.py -- @/var/folders/11/bcmcs8d57q7dxbysb4w_h1ym0000gn/T/.tmpAgigCj
[2022-05-11T14:37:44Z DEBUG lintrunner::linter] Running linter BLACK: python3 tools/linter/adapters/black_linter.py -- @/var/folders/11/bcmcs8d57q7dxbysb4w_h1ym0000gn/T/.tmpqSQYeZ
[2022-05-11T14:37:44Z DEBUG lintrunner::linter] Running linter SPACES: python3 tools/linter/adapters/grep_linter.py --pattern=[[:blank:]]$ --linter-name=SPACES --error-name=trailing spaces --replace-pattern=s/[[:blank:]]+$// --error-description=This line has trailing spaces; please remove them. -- @/var/folders/11/bcmcs8d57q7dxbysb4w_h1ym0000gn/T/.tmppKEWNe
[2022-05-11T14:37:44Z DEBUG lintrunner::linter] Running linter TYPEIGNORE: python3 tools/linter/adapters/grep_linter.py --pattern=# type:\s*ignore([^\[]|$) --linter-name=TYPEIGNORE --error-name=unqualified type: ignore --error-description=This line has an unqualified `type: ignore`; please convert it to `type: ignore[xxxx]` -- @/var/folders/11/bcmcs8d57q7dxbysb4w_h1ym0000gn/T/.tmp8f64VB
[2022-05-11T14:37:44Z DEBUG lintrunner::linter] Running linter MYPY: python3 tools/linter/adapters/mypy_linter.py --config=mypy.ini -- @/var/folders/11/bcmcs8d57q7dxbysb4w_h1ym0000gn/T/.tmpTcB6bU
[2022-05-11T14:37:44Z DEBUG lintrunner::linter] Running linter NOQA: python3 tools/linter/adapters/grep_linter.py --pattern=# noqa([^:]|$) --linter-name=NOQA --error-name=unqualified noqa --error-description=This line has an unqualified `noqa`; please convert it to `noqa: XXXX` -- @/var/folders/11/bcmcs8d57q7dxbysb4w_h1ym0000gn/T/.tmpRYnvNx
[2022-05-11T14:37:44Z DEBUG lintrunner::linter] Running linter FLAKE8: python3 tools/linter/adapters/flake8_linter.py -- @/var/folders/11/bcmcs8d57q7dxbysb4w_h1ym0000gn/T/.tmpQuOP1F
[2022-05-11T14:37:44Z DEBUG lintrunner::linter] Running linter TABS: python3 tools/linter/adapters/grep_linter.py --pattern=	 --linter-name=TABS --error-name=saw some tabs --replace-pattern=s/\t/    / --error-description=This line has tabs; please replace them with spaces. -- @/var/folders/11/bcmcs8d57q7dxbysb4w_h1ym0000gn/T/.tmppZR2f5
[2022-05-11T14:37:44Z DEBUG lintrunner::linter] Linter EXEC took: 103.265458ms
[2022-05-11T14:37:44Z DEBUG lintrunner::linter] Linter NEWLINE took: 105.674791ms
[2022-05-11T14:37:44Z DEBUG lintrunner::linter] Linter SPACES took: 120.552875ms
[2022-05-11T14:37:44Z DEBUG lintrunner::linter] Linter TABS took: 118.828291ms
[2022-05-11T14:37:44Z DEBUG lintrunner::linter] Linter TYPEIGNORE took: 122.363458ms
[2022-05-11T14:37:44Z DEBUG lintrunner::linter] Linter NOQA took: 122.022291ms
[2022-05-11T14:37:44Z DEBUG lintrunner::linter] Linter BLACK took: 316.047708ms
[2022-05-11T14:37:44Z DEBUG lintrunner::linter] Linter FLAKE8 took: 463.736833ms
[2022-05-11T14:38:02Z DEBUG lintrunner::linter] Linter MYPY took: 18.497567833s
ok No lint issues.
```

Also you probably should have some way of reporting the lintrunner version

cc @suo

### Versions

master