-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmypy.ini
More file actions
56 lines (47 loc) · 1.55 KB
/
mypy.ini
File metadata and controls
56 lines (47 loc) · 1.55 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
[mypy]
python_version = 3.10
disallow_untyped_defs = True
disallow_incomplete_defs = True
disallow_untyped_calls = False
check_untyped_defs = True
disallow_untyped_decorators = True
no_implicit_optional = True
strict_optional = True
warn_redundant_casts = True
warn_no_return = True
# Flip on mypy's "strict mode" bundle (~15 individual safety flags).
strict = False
# Also forbid ==/!= between unrelated types (helps catch bytes/str mix-ups).
strict_equality = True
# Adopt the --local-partial-types rule that will be ON by default in mypy 2.0.
local_partial_types = True
# Noise-reduction & bug-surfacing helpers
# Warn if a # type: ignore winds up useless (often a copy-paste error).
warn_unused_ignores = True
# Flag dead code produced by if False, return-before-raise, etc.
warn_unreachable = True
# Complain when a function's return type falls back to Any.
warn_return_any = False
# Tell you when you mistype a key in this very file.
warn_unused_configs = True
# Output ergonomics
# Pretty, colourised, code-snippet-rich error messages.
pretty = True
color_output = True
# Include surrounding source excerpt
show_error_context = True
# e.g. [attr-defined], [call-arg]
show_error_codes = True
# Point to exact char, not just line
show_column_numbers = True
# Performance
# Reuse prior check results
incremental = False
; # Store that cache in a single .sqlite DB
; sqlite_cache = True
; cache_dir = .mypy_cache
enable_error_code = truthy-bool, ignore-without-code, unused-awaitable
# Project layout
files = deepcubeai/
; [mypy-networkx.*]
; ignore_missing_imports = True