-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmypy.ini
More file actions
57 lines (43 loc) · 1.54 KB
/
mypy.ini
File metadata and controls
57 lines (43 loc) · 1.54 KB
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
# This "relaxed" (compared to PEP 484) configuration file aims to provide enough
# type checking to catch common issues and improve code quality while allowing the
# flexibility needed for rapid development and prototyping.
[mypy]
# Specify the files and directories to check
files = src, tests
# Allow untyped calls and definitions to enable rapid development
disallow_untyped_calls = False
disallow_untyped_defs = False
# Allow usage of Any types for flexibility
disallow_any_explicit = False
disallow_any_generics = False
disallow_subclassing_any = False
# Allow untyped decorators for convenience
disallow_untyped_decorators = False
# Allow incomplete type definitions
disallow_incomplete_defs = False
check_untyped_defs = True
# Show warning for missing imports but don't block development
ignore_missing_imports = True
# Allow implicit re-export of imported names
implicit_reexport = True
# Allow dynamic typing to a certain extent
strict_optional = False
warn_unused_ignores = True
warn_redundant_casts = False
warn_unused_configs = False
# Ensure some basic checks for variable declarations
strict_equality = False
warn_no_return = True
warn_return_any = False
# Allow untyped globals
allow_untyped_globals = True
no_implicit_optional = False
# Configuration for third-party libraries
follow_imports = normal
show_error_codes = False
# Make Mypy report an error if there is an Any value in a container type
disallow_any_unimported = False
# Allow Any type in expressions for flexibility
disallow_any_expr = False
[mypy-pytest.*]
ignore_missing_imports = True