Skip to content

Commit 7b209a6

Browse files
committed
Arm backend: Enable mypy for tests
Add test directory in arm backend to lintrunner. Except the ops directory which has to be fixed later. About "disallow_untyped_decorators = False": The only way to make mypy happy seems to be a wrapper around the decorator for each file it is used. I have read numerous of threads about it and there seems to be no good solution. Hence the added ignore for backends/arm. Signed-off-by: per.held@arm.com Change-Id: I0430041cb3308b51798d74da61cc4d310966772a
1 parent 6e0b9ff commit 7b209a6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.lintrunner.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ exclude_patterns = [
367367
'**/third-party/**',
368368
'scripts/check_binary_dependencies.py',
369369
'profiler/test/test_profiler_e2e.py',
370-
'backends/arm/test/**',
370+
'backends/arm/test/ops/*.py',
371371
]
372372
command = [
373373
'python',

.mypy.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ mypy_path = executorch,src
2929
[mypy-executorch.backends.*]
3030
follow_untyped_imports = True
3131

32+
[mypy-backends.arm.*]
33+
disallow_untyped_decorators = False
34+
3235
[mypy-executorch.codegen.*]
3336
follow_untyped_imports = True
3437

0 commit comments

Comments
 (0)