-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmypy.ini
131 lines (90 loc) · 3.2 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
[mypy]
# pip install --upgrade --no-cache-dir mypy
# https://mypy.readthedocs.io/en/latest/config_file.html
python_version = 3.9
# Type check special-cased code for the given OS platform (defaults to sys.platform)
platform = linux
# https://mypy.readthedocs.io/en/stable/config_file.html#confval-mypy_path
# mypy_path =
# mypy_path = $MYPY_CONFIG_FILE_DIR/typings
# Silently ignore imports of missing modules
# ignore_missing_imports = True
# Type check the interior of functions without type annotations
check_untyped_defs = True
# How to treat imports (default normal)
# {normal,silent,skip,error}
follow_imports = silent
# Show column numbers in error messages
show_column_numbers = True
# Show error codes in error messages
show_error_codes = True
# Shows a short summary line after error messages.
error_summary = True
# Show absolute paths to files
# show_absolute_path = True
# Disallow defining functions without type annotations or with incomplete type annotations
# disallow_untyped_defs = True
# Disallow defining functions with incomplete type annotations
# disallow_incomplete_defs = True
# Warn about unused '[mypy-<pattern>]' config sections
warn_unused_configs = True
# Warn about returning values of type Any from non-Any typed functions
warn_return_any = True
# Warn about casting an expression to its inferred type
warn_redundant_casts = True
# Warn about unneeded '# type: ignore' comments
warn_unused_ignores = True
# Enable module cache
# incremental = True
# Store module cache info in the given folder in incremental mode (defaults to '.mypy_cache')
# cache_dir =
# Include fine-grained dependency information in the cache for the mypy daemon
# cache_fine_grained = True
# Regular expression to match file names, directory names or paths which mypy should ignore while recursively discovering files to check, e.g. --exclude '/setup\.py$'
# exclude =
# Use visually nicer output in error messages: Use soft word wrap, show source code snippets, and show error location markers
# NOTE: Do not set `pretty = True`since it messes up with vscode parser for error messages.
pretty = False
# colorize error messages
color_output = True
#
# Third party dependencies that don't have types.
#
# Some of them, taken from torch repo:
# https://github.com/pytorch/pytorch/blob/6d45d7a6c331ddb856ac34a76bcd3613aa05185b/mypy.ini#L155-L259
[mypy-matplotlib.*]
ignore_missing_imports = True
[mypy-numpy.*]
ignore_missing_imports = True
[mypy-tqdm.*]
ignore_missing_imports = True
[mypy-setuptools.*]
ignore_missing_imports = True
[mypy-distutils.*]
ignore_missing_imports = True
[mypy-IPython.*]
ignore_missing_imports = True
[mypy-scipy.*]
ignore_missing_imports = True
[mypy-mypy.*]
ignore_missing_imports = True
[mypy-pandas.*]
ignore_missing_imports = True
[mypy-sklearn.*]
ignore_missing_imports = True
[mypy-statsmodels.*]
ignore_missing_imports = True
[mypy-seaborn.*]
ignore_missing_imports = True
[mypy-requests_cache.*]
ignore_missing_imports = True
[mypy-dna_features_viewer.*]
ignore_missing_imports = True
[mypy-single_version.*]
ignore_missing_imports = True
[mypy-SecretColors.*]
ignore_missing_imports = True
[mypy-fastaparser.*]
ignore_missing_imports = True
# [mypy-.*]
# ignore_missing_imports = True