-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmypy.ini
49 lines (38 loc) · 2.01 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
[mypy]
# See https://mypy.readthedocs.io/en/stable/running_mypy.html#follow-imports
follow_imports = normal
# Specifies the paths to use, after trying the paths from MYPYPATH environment variable.
# mypy_path = ''
# NOTE: mypy requires __init__.py files and/or namespace_packages = True. Otherwise, you will get
# "error: Cannot find implementation or library stub for module named 'module'"
namespace_packages = True
# 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
# Warns about casting an expression to its inferred type.
warn_redundant_casts = True
# Warns about unneeded `# type: ignore` comments.
warn_unused_ignores = True
# Shows a warning when returning a value with type Any from a function declared with a non-Any return type.
warn_return_any = True
# A regular expression that matches file names, directory names and paths which
# mypy should ignore while recursively discovering files to check.
# Note that if you want to exclude multiple regexes, you have to concatenate
# them with |, and sometimes it doesn't even work. It is much easier to
# just use the [mypy-*] notation below with ignore_errors = True
#exclude =
# Allows disabling one or multiple error codes globally.
#disable_error_code = ["ignore-missing-imports"] # comma-separated list of strings
# Disallows usage of generic types that do not specify explicit type parameters.
disallow_any_generics = False # NOTE: This one tends to generate a medium number of warnings, so enable with caution.
# Disallows all expressions in the module that have type Any.
disallow_any_expr = False # NOTE: This one tends to generate a MASSIVE number of warnings, so enable with caution.
# Ignores all non-fatal errors.
ignore_errors = False
[mypy-versioneer]
ignore_errors = True
[mypy-rc._version]
ignore_errors = True