Repository navigation
Expand file tree
/
Copy pathmypy.ini
More file actions
executable file
·62 lines (43 loc) · 1.5 KB
/
Copy pathmypy.ini
File metadata and controls
executable file
·62 lines (43 loc) · 1.5 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
58
59
60
61
[mypy]
; [ Self configuration ]
pretty = True
; Note: Display a full traceback when mypy encounters a fatal error.
show_error_codes = True
; [ Import discovery configuration ]
ignore_missing_imports = False
; Note: Specifying a rule that mypy recursively type-checks.
follow_imports = silent
; Note: Useful if you’d like to keep stubs in your repo, along with the config file.
mypy_path = typings/
; [ Strict options configuration ]
; Note: Across versions of mypy, the flags toggled by --strict vary.
; To ensure we have reproducible type check, we instead manually specify the flags
; [[ Options affected by strict ]]
; [[[ Self configuration file ]]]
warn_unused_configs = True
; [[[ Disallow dynamic typing ]]]
disallow_any_generics = True
disallow_subclassing_any = True
; [[[ Untyped definitions and calls ]]]
disallow_untyped_calls = True
disallow_untyped_defs = True
disallow_incomplete_defs = True
check_untyped_defs = True
disallow_untyped_decorators = True
; [[[ None and Optional handling ]]]
no_implicit_optional = True
; [[[ Configuring warnings ]]]
warn_redundant_casts = True
warn_unused_ignores = True
warn_return_any = True
; [[[ Miscellaneous strictness flags ]]]
strict_equality = True
; Note: Implicit re-exports should always be allowed in PEP 561 packages.
; But that's not the case right now.
; See: https://github.com/python/mypy/issues/8754
; implicit_reexport = False
; [[ Options unaffected by strict ]]
; ......
; [ Module configuration ]
; [mypy-cleo.*]
; ignore_missing_imports = True