@@ -21,3 +21,125 @@ extend-exclude = '''
2121
2222[tool .pytest .ini_options ]
2323addopts = " -ra -v"
24+
25+ [tool .mypy ]
26+
27+ # For details on each flag, please see the mypy documentation at:
28+ # https://mypy.readthedocs.io/en/stable/config_file.html#config-file
29+
30+ # Note: The order of flags listed here should match the order used in mypy's
31+ # documentation to make it easier to find the documentation for each flag.
32+
33+ # Import Discovery
34+ ignore_missing_imports = false
35+
36+ # Disallow dynamic typing
37+ disallow_any_unimported = true
38+ disallow_any_expr = false
39+ disallow_any_decorated = true
40+ disallow_any_explicit = true
41+ disallow_any_generics = true
42+ disallow_subclassing_any = true
43+
44+ # Untyped definitions and calls
45+ disallow_untyped_calls = true
46+ disallow_untyped_defs = true
47+ disallow_incomplete_defs = true
48+ check_untyped_defs = true
49+ disallow_untyped_decorators = true
50+
51+ # None and Optional handling
52+ implicit_optional = false
53+ strict_optional = true
54+
55+ # Configuring warnings
56+ warn_redundant_casts = true
57+ warn_unused_ignores = true
58+ warn_no_return = true
59+ warn_return_any = true
60+ warn_unreachable = true
61+
62+ # Miscellaneous strictness flags
63+ allow_untyped_globals = false
64+ allow_redefinition = false
65+ local_partial_types = true
66+ implicit_reexport = false
67+ strict_concatenate = true
68+ strict_equality = true
69+ strict = true
70+
71+ # Configuring error messages
72+ show_error_context = true
73+ show_column_numbers = true
74+ hide_error_codes = false
75+ pretty = true
76+ color_output = true
77+ error_summary = true
78+ show_absolute_path = true
79+
80+ # Miscellaneous
81+ warn_unused_configs = true
82+ verbosity = 0
83+
84+ # FIXME: As type annotations are introduced, please remove the appropriate
85+ # ignore_errors flag below. New modules should NOT be added here!
86+
87+ [[tool .mypy .overrides ]]
88+ module = [
89+ ' kazoo.client' ,
90+ ' kazoo.exceptions' ,
91+ ' kazoo.handlers.eventlet' ,
92+ ' kazoo.handlers.gevent' ,
93+ ' kazoo.handlers.threading' ,
94+ ' kazoo.handlers.utils' ,
95+ ' kazoo.hosts' ,
96+ ' kazoo.interfaces' ,
97+ ' kazoo.loggingsupport' ,
98+ ' kazoo.protocol.connection' ,
99+ ' kazoo.protocol.paths' ,
100+ ' kazoo.protocol.serialization' ,
101+ ' kazoo.protocol.states' ,
102+ ' kazoo.recipe.barrier' ,
103+ ' kazoo.recipe.cache' ,
104+ ' kazoo.recipe.counter' ,
105+ ' kazoo.recipe.election' ,
106+ ' kazoo.recipe.lease' ,
107+ ' kazoo.recipe.lock' ,
108+ ' kazoo.recipe.partitioner' ,
109+ ' kazoo.recipe.party' ,
110+ ' kazoo.recipe.queue' ,
111+ ' kazoo.recipe.watchers' ,
112+ ' kazoo.retry' ,
113+ ' kazoo.security' ,
114+ ' kazoo.testing.common' ,
115+ ' kazoo.testing.harness' ,
116+ ' kazoo.tests.conftest' ,
117+ ' kazoo.tests.test__connection' ,
118+ ' kazoo.tests.test_barrier' ,
119+ ' kazoo.tests.test_build' ,
120+ ' kazoo.tests.test_cache' ,
121+ ' kazoo.tests.test_client' ,
122+ ' kazoo.tests.test_counter' ,
123+ ' kazoo.tests.test_election' ,
124+ ' kazoo.tests.test_eventlet_handler' ,
125+ ' kazoo.tests.test_exceptions' ,
126+ ' kazoo.tests.test_gevent_handler' ,
127+ ' kazoo.tests.test_hosts' ,
128+ ' kazoo.tests.test_interrupt' ,
129+ ' kazoo.tests.test_lease' ,
130+ ' kazoo.tests.test_lock' ,
131+ ' kazoo.tests.test_partitioner' ,
132+ ' kazoo.tests.test_party' ,
133+ ' kazoo.tests.test_paths' ,
134+ ' kazoo.tests.test_queue' ,
135+ ' kazoo.tests.test_retry' ,
136+ ' kazoo.tests.test_sasl' ,
137+ ' kazoo.tests.test_security' ,
138+ ' kazoo.tests.test_selectors_select' ,
139+ ' kazoo.tests.test_threading_handler' ,
140+ ' kazoo.tests.test_utils' ,
141+ ' kazoo.tests.test_watchers' ,
142+ ' kazoo.tests.util' ,
143+ ' kazoo.version'
144+ ]
145+ ignore_errors = true
0 commit comments