forked from leo-editor/leo-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mypy.ini
102 lines (79 loc) · 2.73 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
# Config file for mypy
# Note: Do not put comments after settings.
[mypy]
python_version = 3.9
ignore_missing_imports = True
incremental = True
# cache_dir=nul
cache_dir = mypy_cache
show_error_codes = True
check_untyped_defs = True
strict_optional = False
disable_error_code=attr-defined
# For v0.931, per https://github.com/python/mypy/issues/11936
exclude =
# The first line must *not* start with |.
# Thereafter, each line *must* start with |.
# No trailing '|' on last entry!
# Directories...
doc/|dist/|editpane/|examples/|extensions/|external/|modes/|obsolete/|scripts/|themes/|unittests/|www/|
# Special plugins...
|freewin.py|scriptFile.py|viewrendered3|
# Experimental plugins...
|cursesGui|leo_pdf|leo_to_rtf|mnplugins|mod_speedups|settings_finder|stickynotes_plus|
# qt_main.py is generated automatically, so it's pointless to add annotations.
|qt_main
# The default for leo.core: full annotation.
[mypy-leo.core.*]
disallow_untyped_defs = True
disallow_incomplete_defs = True
# The default leo.commands: full annotation.
[mypy-leo.commands.*]
disallow_untyped_defs = True
disallow_incomplete_defs = True
# All importer and writer plugins: full annotation.
[mypy-leo.plugins.importers.*,leo.plugins.writers.*]
disallow_untyped_defs = True
disallow_incomplete_defs = True
# Exclusions...
# Don't check leoQt*.py.
[mypy-leo.core.leoQt,leo.core.leoQt5,leo.core.leoQt6]
follow_imports = skip
ignore_missing_imports = True
disallow_untyped_defs = False
disallow_incomplete_defs = False
# Don't check leo/modes.
[mypy-leo.modes]
follow_imports = skip
ignore_missing_imports = True
disallow_untyped_defs = False
disallow_incomplete_defs = False
# Don't check third-party code.
[mypy-leo.core.leoRope,leo.external.npyscreen]
follow_imports = skip
ignore_missing_imports = True
disallow_untyped_defs = False
disallow_incomplete_defs = False
# Standard plugins: full annotation...
[mypy-leo.plugins.contextmenu,leo.plugins.free_layout]
disallow_untyped_defs = True
disallow_incomplete_defs = True
[mypy-leo.plugins.mod_scripting,leo.plugins.nav_qt,leo.plugins.nodetags]
disallow_untyped_defs = True
disallow_incomplete_defs = True
[mypy-mleo.plugins.plugins_menu,leo.plugins.quicksearch]
disallow_untyped_defs = True
disallow_incomplete_defs = True
[mypy-leo.plugins.todo,leo.plugins.viewrendered]
disallow_untyped_defs = True
disallow_incomplete_defs = True
# Check cursesGui2 plugin.
[mypy-leo.plugins.cursesGui2]
disallow_untyped_defs = True
disallow_incomplete_defs = True
# Don't check special cases.
[mypy-leo.core.runLeo,leo.core.leoclient,leo.core.leoPymacs,leo.core.leoFastRedraw]
follow_imports = skip
ignore_missing_imports = True
disallow_untyped_defs = False
disallow_incomplete_defs = False