Unblock mypy's follow-import setting
[mypy]
# Be vewy, vewy stwict, we'we hunting wabbits^Wbugs.
strict = True
-# Automagically make imported object part of mypy's view of module's namespace.
+
+# Automagically make imported object part of mypy's view
+# of module's namespace.
implicit_reexport = True
+
# Mypy will install packaged type stubs when possible.
install_types = True
non_interactive = True
@@ -10,25 +13,12 @@ non_interactive = True
# Make error messages more rich, this helps better targeted waivers.
show_error_codes = True
+# Allow mypy to follow imports to get correct picture of type
+# annotations across module boundaries.
+follow_imports = normal
+
files = bin/tmt,
- tmt/__init__.py,
- tmt/__main__.py,
- tmt/beakerlib.py,
- tmt/base.py,
- tmt/cli.py,
- tmt/convert.py,
- tmt/export.py,
- tmt/identifier.py,
- tmt/plugins,
- tmt/steps,
- tmt/options.py,
- tmt/templates.py,
- tmt/utils.py
-
-# This is probably temporary: don't follow imports to other tmt packages
-# and modules, but once the list of files is complete, this should be dropped
-# in favor of simply checking whole tmt package.
-follow_imports = skip
+ tmt/
[mypy-bugzilla.*]
ignore_missing_imports = True
