@@ -36,6 +36,16 @@ ignore =
36
36
N812
37
37
# suppress flake8-mypy failures occuring when MYPYPATH=${src_dir}/monai/monai
38
38
T499
39
+ # --- Temporary disabling to allow smaller PRs
40
+ # Subsequent fixes necessary to make this tool pass are not yet
41
+ # merged into the master branch, but requested as separate
42
+ # commits. Can not enable until all outstanding typehint
43
+ # PR's are approved
44
+ T484
45
+ # Unused imports may be used later, disable warning while we
46
+ # separate many PR's
47
+ F401
48
+ # ^^^^^^^^^ Temporary disabling to allow smaller PRs
39
49
per-file-ignores = __init__.py: F401
40
50
exclude = *.pyi,.git,monai/_version.py,versioneer.py
41
51
@@ -48,11 +58,27 @@ tag_prefix =
48
58
parentdir_prefix =
49
59
50
60
[mypy]
61
+ # --- Temporary disabling to allow smaller PRs
62
+ # Subsequent fixes necessary to make this tool pass are not yet
63
+ # merged into the master branch, but requested as separate
64
+ # commits. Can not enable until all outstanding typehint
65
+ # PR's are approved
66
+ ignore_errors = True # # Temporarily disable all mypy warnings
67
+ # ^^^^^^ Temporary disabling to allow smaller PRs
68
+
69
+
51
70
# do not follow imports (except for ones found in typeshed)
52
71
follow_imports =normal
53
72
54
73
# suppress errors about unsatisfied imports
55
- ignore_missing_imports =False
74
+ # The pytorch-ignite package is not type hinted and generates
75
+ # hundreds of failures that are not the priority to address
76
+ # at the monment. Eventually ignore_missing_imports=False
77
+ # should be used add consistent typing information to
78
+ # those parts of the MONAI package that depend on ignite.
79
+ ignore_missing_imports =True
80
+ # Temporarily ignore all site packages too
81
+ # --no_site_packages=True
56
82
57
83
# allow returning Any as a consequence of the options above
58
84
warn_return_any =True
@@ -63,10 +89,25 @@ warn_no_return=True
63
89
# lint-style cleanliness for typing needs to be disabled; returns more errors
64
90
# than the full run.
65
91
warn_redundant_casts =True
66
- warn_unused_ignores =True
67
- # NOTE: All relative paths are relative to the location of this file.
92
+ warn_unused_ignores =False
93
+
94
+ [mypy-torch.*]
95
+ # --- Temporary disabling to allow smaller PRs
96
+ # Subsequent fixes necessary to make this tool pass are not yet
97
+ # merged into the master branch, but requested as separate
98
+ # commits. Can not enable until all outstanding typehint
99
+ # PR's are approved
100
+ ignore_errors = True # # Temporarily disable all mypy warnings
101
+ # ^^^^^^ Temporary disabling to allow smaller PRs
102
+ follow_imports = skip
103
+ follow_imports_for_stubs = True
104
+
105
+ [mypy-monai._version]
106
+ # Always ignore any type issues in teh monai/._version file
107
+ ignore_errors = True
68
108
69
109
[pytype]
110
+ # NOTE: All relative paths are relative to the location of this file.
70
111
# Space-separated list of files or directories to exclude.
71
112
exclude = **/*_test.py **/test_*.py
72
113
# Space-separated list of files or directories to process.
0 commit comments