2
2
requires = [" setuptools>=46.4.0" ]
3
3
build-backend = " setuptools.build_meta"
4
4
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
+
5
23
[[tool .mypy .overrides ]]
6
24
module = " astroid.*"
7
25
ignore_missing_imports = true
@@ -12,32 +30,15 @@ ignore_errors = true
12
30
13
31
[[tool .mypy .overrides ]]
14
32
module = " 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
23
33
24
34
# Strongly recommend enabling this one as soon as you can
25
35
check_untyped_defs = true
26
36
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
-
33
37
# These next few are various gradations of forcing use of type annotations
34
38
disallow_untyped_calls = true
35
39
disallow_incomplete_defs = true
36
40
disallow_untyped_defs = true
37
41
38
- # This one isn't too hard to get passing, but return on investment is lower
39
- no_implicit_reexport = true
40
-
41
42
# This one can be tricky to get passing if you use a lot of untyped libraries
42
43
# Ignore until astroid is typed (https://github.com/pylint-dev/astroid/issues/2060)
43
44
warn_return_any = false
0 commit comments