mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
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:
committed by
PyTorch MergeBot
parent
04689ae209
commit
214c0fdc4b
@ -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 = [
|
||||
]
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user