MYPYNOFOLLOW for test_utils (#92136)

lintrunner went from 10 minutes to 25 minutes after 333540a458d40603feea84d30e4ad9b96b07318d since test/test_utils.py imports op_db, which takes 10+ minutes to run mypy on, so switch it to the the group of files that doesn't follow imports
Pull Request resolved: https://github.com/pytorch/pytorch/pull/92136
Approved by: https://github.com/ZainRizvi, https://github.com/huydhn
This commit is contained in:
Catherine Lee
2023-01-13 22:57:04 +00:00
committed by PyTorch MergeBot
parent 04689ae209
commit 214c0fdc4b
3 changed files with 4 additions and 4 deletions

View File

@ -95,7 +95,6 @@ include_patterns = [
'test/test_torch.py',
'test/test_type_hints.py',
'test/test_type_info.py',
'test/test_utils.py',
]
exclude_patterns = [
'torch/include/**',
@ -166,6 +165,7 @@ include_patterns = [
'torch/_dynamo/optimizations/training.py',
'torch/_inductor/graph.py',
'torch/_C/_dynamo/**/*.py',
'test/test_utils.py', # used to by in MYPY but after importing op_db it took 10+ minutes
]
exclude_patterns = [
]

View File

@ -15,7 +15,8 @@ warn_unused_ignores = False
disallow_any_generics = True
files =
torch/_dynamo
torch/_dynamo,
test/test_utils.py
# Minimum version supported - variable annotations were introduced
# in Python 3.7

View File

@ -35,8 +35,7 @@ files =
test/test_numpy_interop.py,
test/test_torch.py,
test/test_type_hints.py,
test/test_type_info.py,
test/test_utils.py
test/test_type_info.py
#
# `exclude` is a regex, not a list of paths like `files` (sigh)