-
Notifications
You must be signed in to change notification settings - Fork 387
/
pyproject.toml
151 lines (136 loc) · 3.99 KB
/
pyproject.toml
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
[build-system]
build-backend = 'setuptools.build_meta'
requires = [
'setuptools >= 46.4.0',
]
[tool.black]
line-length = 79
target-version = ['py37', 'py38', 'py39', 'py310']
include = '\.pyi?$'
# 'extend-exclude' excludes files or directories in addition to the defaults
# A regex preceded with ^/ will apply only to files and directories
# in the root of the project.
# (
# ^/foo.py # exclude a file named foo.py in the root of the project.
# | .*_pb2.py # exclude autogenerated Protocol Buffer files anywhere in the
# )
# # project.
extend-exclude = '''
'''
[tool.pytest.ini_options]
addopts = "-ra -v --color=yes"
log_cli = true
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
log_cli_format = "%(asctime)s %(levelname)s %(message)s"
log_cli_level = "INFO"
# Per-test timeout in seconds
timeout = 180
[tool.mypy]
# For details on each flag, please see the mypy documentation at:
# https://mypy.readthedocs.io/en/stable/config_file.html#config-file
# Note: The order of flags listed here should match the order used in mypy's
# documentation to make it easier to find the documentation for each flag.
# Import Discovery
ignore_missing_imports = false
# Disallow dynamic typing
disallow_any_unimported = true
disallow_any_expr = false
disallow_any_decorated = true
disallow_any_explicit = true
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
implicit_optional = false
strict_optional = true
# Configuring warnings
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_return_any = true
warn_unreachable = true
# Miscellaneous strictness flags
allow_untyped_globals = false
allow_redefinition = false
local_partial_types = true
implicit_reexport = false
strict_concatenate = true
strict_equality = true
strict = true
# Configuring error messages
show_error_context = true
show_column_numbers = true
hide_error_codes = false
pretty = true
color_output = true
error_summary = true
show_absolute_path = true
# Miscellaneous
warn_unused_configs = true
verbosity = 0
# FIXME: As type annotations are introduced, please remove the appropriate
# ignore_errors flag below. New modules should NOT be added here!
[[tool.mypy.overrides]]
module = [
'kazoo.client',
'kazoo.exceptions',
'kazoo.handlers.eventlet',
'kazoo.handlers.gevent',
'kazoo.handlers.threading',
'kazoo.handlers.utils',
'kazoo.hosts',
'kazoo.interfaces',
'kazoo.loggingsupport',
'kazoo.protocol.connection',
'kazoo.protocol.paths',
'kazoo.protocol.serialization',
'kazoo.protocol.states',
'kazoo.recipe.barrier',
'kazoo.recipe.cache',
'kazoo.recipe.counter',
'kazoo.recipe.election',
'kazoo.recipe.lease',
'kazoo.recipe.lock',
'kazoo.recipe.partitioner',
'kazoo.recipe.party',
'kazoo.recipe.queue',
'kazoo.recipe.watchers',
'kazoo.retry',
'kazoo.security',
'kazoo.testing.common',
'kazoo.testing.harness',
'kazoo.tests.conftest',
'kazoo.tests.test_barrier',
'kazoo.tests.test_build',
'kazoo.tests.test_cache',
'kazoo.tests.test_client',
'kazoo.tests.test_connection',
'kazoo.tests.test_counter',
'kazoo.tests.test_election',
'kazoo.tests.test_eventlet_handler',
'kazoo.tests.test_exceptions',
'kazoo.tests.test_gevent_handler',
'kazoo.tests.test_hosts',
'kazoo.tests.test_interrupt',
'kazoo.tests.test_lease',
'kazoo.tests.test_lock',
'kazoo.tests.test_partitioner',
'kazoo.tests.test_party',
'kazoo.tests.test_paths',
'kazoo.tests.test_queue',
'kazoo.tests.test_retry',
'kazoo.tests.test_sasl',
'kazoo.tests.test_security',
'kazoo.tests.test_selectors_select',
'kazoo.tests.test_threading_handler',
'kazoo.tests.test_utils',
'kazoo.tests.test_watchers',
'kazoo.tests.util',
'kazoo.version'
]
ignore_errors = true