mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 00:20:18 +01:00
MYPYNOFOLLOW for test_utils (#92136)
lintrunner went from 10 minutes to 25 minutes after 333540a458 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:
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user