forked from semgrep/semgrep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmypy-tests.ini
96 lines (70 loc) · 2.17 KB
/
mypy-tests.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# TODO: explain why we have a different mypy setup for test code.
#
# Every setting that differs from the main config mypy.ini must be justified.
# To compare, use:
#
# diff --color=always -u mypy.ini mypy-tests.ini
#
[mypy]
# Globals
python_version = 3.8
# Strict typing options
mypy_path = $MYPY_CONFIG_FILE_DIR/cli/stubs,$MYPY_CONFIG_FILE_DIR/cli/src
# Avoid configuration issues
warn_unused_configs = True
# Import Discovery
ignore_missing_imports = False
follow_imports = normal
# Dynamic typing
disallow_subclassing_any = True
disallow_any_generics = False
disallow_any_unimported = True
disallow_any_expr = False
disallow_any_decorated = False
disallow_any_explicit = False
# Untyped definitions and calls
# different: why? (106 errors when enabled)
disallow_untyped_calls = False
# different: why? (782 errors when enabled)
disallow_untyped_defs = False
# different: why? (574 errors when enabled)
disallow_incomplete_defs = False
check_untyped_defs = True
disallow_untyped_decorators = True
# Implicit optional
no_implicit_optional = True
# Other warns
warn_redundant_casts = True
# different: when scanning test code, mypy will report '# type: ignore'
# comments found in application code incorrectly as unused even though
# they're necessary when running mypy on the application code directly.
# Disabling this setting prevents these incorrect reports
# (2 errors in tracing.py).
warn_unused_ignores = False
warn_return_any = True
# Ignore missing imports for third party libraries without type stubs
# Must have one entry per package
# Should reduce the size of this section as time goes on
[mypy-matplotlib.*]
ignore_missing_imports = True
[mypy-pandas]
ignore_missing_imports = True
[mypy-wcmatch.*]
ignore_missing_imports = True
[mypy-peewee]
ignore_missing_imports = True
[mypy-pydantic]
ignore_missing_imports = True
[mypy-pylsp_jsonrpc.*]
ignore_missing_imports = True
[mypy-semgrep.rule_match]
disallow_any_decorated = False
warn_return_any = False
[mypy-semgrep.pattern_match]
disallow_any_decorated = False
warn_return_any = False
[mypy-semgrep.formatter.*]
disallow_any_decorated = False
warn_return_any = False
[mypy-semgrep.commands.scan]
disallow_untyped_decorators = False