Skip to content

Commit cd185e8

Browse files
authored
Temporarily disable mypy (#2786)
Also removed outdated mypy exclude paths. Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
1 parent 55ed939 commit cd185e8

File tree

1 file changed

+11
-21
lines changed

1 file changed

+11
-21
lines changed

.lintrunner.toml

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -37,27 +37,17 @@ include_patterns = [
3737
'onnxscript/**/*.pyi',
3838
]
3939
exclude_patterns = [
40-
'tests/**', # Skip linting test files for speed
41-
# FIXME: Fix typing annotations in these files
42-
'examples/custom_op_expansion.py',
43-
'onnxscript/_internal/converter_test.py',
44-
'onnxscript/_internal/converter.py',
45-
'onnxscript/_internal/evaluator_test.py',
46-
'onnxscript/_internal/evaluator.py',
47-
'onnxscript/onnx_types.py',
48-
'onnxscript/**/*_test.py', # Skip linting test files for speed
49-
'onnxscript/function_libs/torch_lib/ops/**', # Operators typing do not play well with mypy
50-
'onnxscript/optimizer/_legacy/evaluator.py', # FIXME
51-
'onnxscript/optimizer/_legacy/constant_folding.py', # FIXME
52-
'onnxscript/rewriter/onnxruntime/transformers/fastgelu.py', # FIXME
53-
'onnxscript/rewriter/onnxruntime/instance_to_group_normalization.py', # FIXME
54-
'onnxscript/rewriter/ort_fusions/models/*.py', # onnxscript code
55-
'onnxscript/rewriter/ort_fusions/models/_phi2lm.py', # onnxscript code
56-
'onnxscript/rewriter/ort_fusions/models/_phi4lm.py', # onnxscript code
57-
'onnxscript/rewriter/ort_fusions/_rotary_embedding_models.py', # onnxscript code
58-
'onnxscript/rewriter/onnxruntime/transformers/multihead_attention.py', # FIXME
59-
'onnxscript/tools/function_unittest_producer.py', # FIXME
60-
'onnxscript/rewriter/onnxruntime/transformers/layernorm.py', # FIXME
40+
# 'onnxscript/_internal/converter.py',
41+
# 'onnxscript/_internal/evaluator.py',
42+
# 'onnxscript/**/*_test.py', # Skip linting test files for speed
43+
# 'onnxscript/**/tools/**/*.py',
44+
# 'onnxscript/function_libs/torch_lib/ops/**', # Operators typing do not play well with mypy
45+
# 'onnxscript/onnx_opset/**/*.py', # auto-generated code
46+
# 'onnxscript/onnx_types.py',
47+
# 'onnxscript/rewriter/ort_fusions/_rotary_embedding_models.py', # onnxscript code
48+
# 'onnxscript/rewriter/ort_fusions/models/*.py', # onnxscript code
49+
# 'onnxscript/rewriter/models/*.py', # onnxscript code
50+
'**/*.py', # Temporarily disable mypy
6151
]
6252
command = [
6353
'python',

0 commit comments

Comments
 (0)