| 1 |
[build-system] |
| 2 |
build-backend = 'setuptools.build_meta' |
| 3 |
requires = [ |
| 4 |
'setuptools >= 46.4.0', |
| 5 |
] |
| 6 |
|
| 7 |
[tool.black] |
| 8 |
line-length = 79 |
| 9 |
target-version = ['py37', 'py38', 'py39', 'py310'] |
| 10 |
include = '\.pyi?$' |
| 11 |
# 'extend-exclude' excludes files or directories in addition to the defaults |
| 12 |
# A regex preceded with ^/ will apply only to files and directories |
| 13 |
# in the root of the project. |
| 14 |
# ( |
| 15 |
# ^/foo.py # exclude a file named foo.py in the root of the project. |
| 16 |
# | .*_pb2.py # exclude autogenerated Protocol Buffer files anywhere in the |
| 17 |
# ) |
| 18 |
# # project. |
| 19 |
extend-exclude = ''' |
| 20 |
''' |
| 21 |
|
| 22 |
[tool.pytest.ini_options] |
| 23 |
addopts = "-ra -v --color=yes" |
| 24 |
log_cli = true |
| 25 |
log_cli_date_format = "%Y-%m-%d %H:%M:%S" |
| 26 |
log_cli_format = "%(asctime)s %(levelname)s %(message)s" |
| 27 |
log_cli_level = "INFO" |
| 28 |
# Per-test timeout in seconds |
| 29 |
timeout = 180 |
| 30 |
|
| 31 |
[tool.mypy] |
| 32 |
|
| 33 |
# For details on each flag, please see the mypy documentation at: |
| 34 |
# https://mypy.readthedocs.io/en/stable/config_file.html#config-file |
| 35 |
|
| 36 |
# Note: The order of flags listed here should match the order used in mypy's |
| 37 |
# documentation to make it easier to find the documentation for each flag. |
| 38 |
|
| 39 |
# Import Discovery |
| 40 |
ignore_missing_imports = false |
| 41 |
|
| 42 |
# Disallow dynamic typing |
| 43 |
disallow_any_unimported = true |
| 44 |
disallow_any_expr = false |
| 45 |
disallow_any_decorated = true |
| 46 |
disallow_any_explicit = true |
| 47 |
disallow_any_generics = true |
| 48 |
disallow_subclassing_any = true |
| 49 |
|
| 50 |
# Untyped definitions and calls |
| 51 |
disallow_untyped_calls = true |
| 52 |
disallow_untyped_defs = true |
| 53 |
disallow_incomplete_defs = true |
| 54 |
check_untyped_defs = true |
| 55 |
disallow_untyped_decorators = true |
| 56 |
|
| 57 |
# None and Optional handling |
| 58 |
implicit_optional = false |
| 59 |
strict_optional = true |
| 60 |
|
| 61 |
# Configuring warnings |
| 62 |
warn_redundant_casts = true |
| 63 |
warn_unused_ignores = true |
| 64 |
warn_no_return = true |
| 65 |
warn_return_any = true |
| 66 |
warn_unreachable = true |
| 67 |
|
| 68 |
# Miscellaneous strictness flags |
| 69 |
allow_untyped_globals = false |
| 70 |
allow_redefinition = false |
| 71 |
local_partial_types = true |
| 72 |
implicit_reexport = false |
| 73 |
strict_concatenate = true |
| 74 |
strict_equality = true |
| 75 |
strict = true |
| 76 |
|
| 77 |
# Configuring error messages |
| 78 |
show_error_context = true |
| 79 |
show_column_numbers = true |
| 80 |
hide_error_codes = false |
| 81 |
pretty = true |
| 82 |
color_output = true |
| 83 |
error_summary = true |
| 84 |
show_absolute_path = true |
| 85 |
|
| 86 |
# Miscellaneous |
| 87 |
warn_unused_configs = true |
| 88 |
verbosity = 0 |
| 89 |
|
| 90 |
# FIXME: As type annotations are introduced, please remove the appropriate |
| 91 |
# ignore_errors flag below. New modules should NOT be added here! |
| 92 |
|
| 93 |
[[tool.mypy.overrides]] |
| 94 |
module = [ |
| 95 |
'kazoo.client', |
| 96 |
'kazoo.exceptions', |
| 97 |
'kazoo.handlers.eventlet', |
| 98 |
'kazoo.handlers.gevent', |
| 99 |
'kazoo.handlers.threading', |
| 100 |
'kazoo.handlers.utils', |
| 101 |
'kazoo.hosts', |
| 102 |
'kazoo.interfaces', |
| 103 |
'kazoo.loggingsupport', |
| 104 |
'kazoo.protocol.connection', |
| 105 |
'kazoo.protocol.paths', |
| 106 |
'kazoo.protocol.serialization', |
| 107 |
'kazoo.protocol.states', |
| 108 |
'kazoo.recipe.barrier', |
| 109 |
'kazoo.recipe.cache', |
| 110 |
'kazoo.recipe.counter', |
| 111 |
'kazoo.recipe.election', |
| 112 |
'kazoo.recipe.lease', |
| 113 |
'kazoo.recipe.lock', |
| 114 |
'kazoo.recipe.partitioner', |
| 115 |
'kazoo.recipe.party', |
| 116 |
'kazoo.recipe.queue', |
| 117 |
'kazoo.recipe.watchers', |
| 118 |
'kazoo.retry', |
| 119 |
'kazoo.security', |
| 120 |
'kazoo.testing.common', |
| 121 |
'kazoo.testing.harness', |
| 122 |
'kazoo.tests.conftest', |
| 123 |
'kazoo.tests.test_barrier', |
| 124 |
'kazoo.tests.test_build', |
| 125 |
'kazoo.tests.test_cache', |
| 126 |
'kazoo.tests.test_client', |
| 127 |
'kazoo.tests.test_connection', |
| 128 |
'kazoo.tests.test_counter', |
| 129 |
'kazoo.tests.test_election', |
| 130 |
'kazoo.tests.test_eventlet_handler', |
| 131 |
'kazoo.tests.test_exceptions', |
| 132 |
'kazoo.tests.test_gevent_handler', |
| 133 |
'kazoo.tests.test_hosts', |
| 134 |
'kazoo.tests.test_interrupt', |
| 135 |
'kazoo.tests.test_lease', |
| 136 |
'kazoo.tests.test_lock', |
| 137 |
'kazoo.tests.test_partitioner', |
| 138 |
'kazoo.tests.test_party', |
| 139 |
'kazoo.tests.test_paths', |
| 140 |
'kazoo.tests.test_queue', |
| 141 |
'kazoo.tests.test_retry', |
| 142 |
'kazoo.tests.test_sasl', |
| 143 |
'kazoo.tests.test_security', |
| 144 |
'kazoo.tests.test_selectors_select', |
| 145 |
'kazoo.tests.test_threading_handler', |
| 146 |
'kazoo.tests.test_utils', |
| 147 |
'kazoo.tests.test_watchers', |
| 148 |
'kazoo.tests.util', |
| 149 |
'kazoo.version' |
| 150 |
] |
| 151 |
ignore_errors = true |