-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathmypy.ini
79 lines (58 loc) · 1.91 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[mypy]
python_version = 3.9
warn_return_any = False
warn_unused_configs = True
; ignore examples
exclude = ^(examples/|scripts/)
; mypy does not see PEP-517 packages installed as editable (see https://github.com/python/mypy/issues/12313)
; So we add our packages manually to the mypy path
mypy_path = $MYPY_CONFIG_FILE_DIR/mypy_stubs,
$MYPY_CONFIG_FILE_DIR/nucliadb_sdk/src
[mypy-azure.*]
ignore_missing_imports = True
[mypy-opentelemetry.*]
ignore_missing_imports = True
[mypy-tqdm.*]
ignore_missing_imports = True
[mypy-torch.*]
ignore_missing_imports = True
[mypy-nucliadb_utils.tests.*]
ignore_missing_imports = True
allow_untyped_defs = True
allow_untyped_calls = True
disable_error_code = var-annotated, has-type, attr-defined, misc, union-attr
[mypy-molotov.*]
ignore_missing_imports = True
[mypy-nucliadb_performance.*]
ignore_missing_imports = True
[mypy-nucliadb_protos.*]
; These are required because we have duplicated message names in different protos
; that eventually get imported into a single proto. The code actually works because
; it uses qualified names, but the generated type annotations contain errors.
; This is a limitation of mypy-protobuf that might be fixed in the future
disable_error_code = no-redef, assignment
[mypy-certifi.*]
ignore_missing_imports = True
[mypy-sentry_sdk.*]
ignore_missing_imports = True
[mypy-prometheus_client.*]
ignore_missing_imports = True
[mypy-watchdog.*]
ignore_missing_imports = True
[mypy-starlette_prometheus.*]
ignore_missing_imports = True
[mypy-pluggy.*]
ignore_missing_imports = True
[mypy-pytest_lazy_fixtures.*]
ignore_missing_imports = True
# nucliadb_sdk deprecated things
[mypy-nucliadb_sdk.resource.*]
disable_error_code = arg-type, call-arg
[mypy-aioresponses]
ignore_missing_imports = True
[mypy-argdantic.*]
ignore_missing_imports = True
[mypy-numpy.*]
ignore_missing_imports = True
[mypy-pytest_docker_fixtures]
ignore_missing_imports = True