This repository has been archived by the owner on Jan 25, 2023. It is now read-only.
forked from numba/numba
-
Notifications
You must be signed in to change notification settings - Fork 7
/
mypy.ini
52 lines (44 loc) · 1.68 KB
/
mypy.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Global options:
[mypy]
warn_unused_configs = True
follow_imports = silent
show_error_context = True
files = **/numba/core/types/*.py, **/numba/core/datamodel/*.py, **/numba/core/rewrites/*.py, **/numba/core/unsafe/*.py
# Per-module options:
# To classify a given module as Level 1, 2 or 3 it must be added both in files (variable above) and in the lists below.
# Level 1 - modules checked on the strictest settings.
;[mypy-]
;warn_return_any = True
;disallow_any_expr = True
;disallow_any_explicit = True
;disallow_any_generics = True
;disallow_subclassing_any = True
;disallow_untyped_calls = True
;disallow_untyped_defs = True
;disallow_incomplete_defs = True
;check_untyped_defs = True
;disallow_untyped_decorators = True
;warn_unused_ignores = True
;follow_imports = normal
;warn_unreachable = True
;strict_equality = True
# Level 2 - module that pass reasonably strict settings.
# No untyped functions allowed. Imports must be typed or explicitly ignored.
;[mypy-]
;warn_return_any = True
;disallow_untyped_defs = True
;disallow_incomplete_defs = True
;follow_imports = normal
# Level 3 - modules that pass mypy default settings (only those in `files` global setting and not in previous levels)
# Function/variables are annotated to avoid mypy erros, but annotations are not complete.
[mypy-numba.core.*]
warn_return_any = True
# Level 4 - modules that do not pass mypy check: they are excluded from "files" setting in global section
# External packages that lack annotations
[mypy-llvmlite.*]
ignore_missing_imports = True
[mypy-numpy.*]
ignore_missing_imports = True
[mypy-winreg.*]
# this can be removed after Mypy 0.78 is out with the latest typeshed
ignore_missing_imports = True