22requires = [" setuptools>=46.4.0" ]
33build-backend = " setuptools.build_meta"
44
5+ [tool .mypy ]
6+ # Start off with these
7+ warn_unused_configs = true
8+ warn_redundant_casts = true
9+ warn_unused_ignores = true
10+
11+ # Getting these passing should be easy
12+ strict_equality = true
13+
14+ # These shouldn't be too much additional work, but may be tricky to
15+ # get passing if you use a lot of untyped libraries
16+ disallow_subclassing_any = true
17+ disallow_untyped_decorators = true
18+ disallow_any_generics = true
19+
20+ # This one isn't too hard to get passing, but return on investment is lower
21+ no_implicit_reexport = true
22+
523[[tool .mypy .overrides ]]
624module = " astroid.*"
725ignore_missing_imports = true
@@ -12,32 +30,15 @@ ignore_errors = true
1230
1331[[tool .mypy .overrides ]]
1432module = " autoapi._astroid_utils"
15- # Start off with these
16- # warn_unused_configs = true <-- can only be set globally
17- # warn_redundant_casts = true <-- can only be set globally
18- warn_unused_ignores = true
19-
20- # Getting these passing should be easy
21- strict_equality = true
22- strict_concatenate = true
2333
2434# Strongly recommend enabling this one as soon as you can
2535check_untyped_defs = true
2636
27- # These shouldn't be too much additional work, but may be tricky to
28- # get passing if you use a lot of untyped libraries
29- disallow_subclassing_any = true
30- disallow_untyped_decorators = true
31- disallow_any_generics = true
32-
3337# These next few are various gradations of forcing use of type annotations
3438disallow_untyped_calls = true
3539disallow_incomplete_defs = true
3640disallow_untyped_defs = true
3741
38- # This one isn't too hard to get passing, but return on investment is lower
39- no_implicit_reexport = true
40-
4142# This one can be tricky to get passing if you use a lot of untyped libraries
4243# Ignore until astroid is typed (https://github.com/pylint-dev/astroid/issues/2060)
4344warn_return_any = false
0 commit comments