-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy path.mypy.ini
61 lines (44 loc) · 1.49 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
###############################################################################
# Global Options
[mypy]
files = python/smqtk, tests
# Disable caching
incremental = False
###############################################################################
# Options for different parts of SMQTK
[mypy-smqtk.*]
# Disallows defining functions without type annotations or with incomplete type
# annotations.
;disallow_untyped_defs = True
# Disallows defining functions with incomplete type annotations
disallow_incomplete_defs = True
# Type-checks the interior of functions without type annotations.
check_untyped_defs = True
# Allows variables to be redefined with an arbitrary type, as long as the
# redefinition is in the same block and nesting level as the original
# definition.
allow_redefinition = True
[mypy-tests.*]
# Disallows defining functions with incomplete type annotations
disallow_incomplete_defs = True
# Incrementally making sub-modules more strict
[mypy-smqtk.iqr.iqr_session]
disallow_untyped_defs = True
[mypy-smqtk.utils.plugin]
disallow_untyped_defs = True
[mypy-tests.utils.test_plugin]
disallow_untyped_defs = True
###############################################################################
# TPL-module options
[mypy-numpy.*]
ignore_missing_imports = True
[mypy-PIL.*]
ignore_missing_imports = True
[mypy-scipy.*]
ignore_missing_imports = True
[mypy-sklearn.*]
ignore_missing_imports = True
[mypy-stevedore.*]
ignore_missing_imports = True
[mypy-pytest]
ignore_missing_imports = True