2021-05-22 01:39:45 +08:00
|
|
|
[tool.black]
|
|
|
|
line-length = 100
|
2023-10-25 15:48:18 -07:00
|
|
|
target-version = ["py38"]
|
2021-05-22 01:39:45 +08:00
|
|
|
|
2021-05-22 01:33:18 +08:00
|
|
|
[tool.isort]
|
2022-06-17 11:49:25 -07:00
|
|
|
src_paths = [
|
|
|
|
"tools",
|
|
|
|
"zulip",
|
|
|
|
"zulip/integrations/zephyr",
|
|
|
|
"zulip_bots",
|
|
|
|
"zulip_botserver",
|
|
|
|
]
|
2021-05-22 01:33:18 +08:00
|
|
|
profile = "black"
|
|
|
|
line_length = 100
|
2023-10-25 15:00:34 -07:00
|
|
|
|
2021-08-24 20:30:28 -07:00
|
|
|
[tool.mypy]
|
|
|
|
mypy_path = [
|
|
|
|
"$MYPY_CONFIG_FILE_DIR/stubs",
|
|
|
|
"$MYPY_CONFIG_FILE_DIR/zulip",
|
|
|
|
"$MYPY_CONFIG_FILE_DIR/zulip_bots",
|
|
|
|
"$MYPY_CONFIG_FILE_DIR/zulip_botserver",
|
|
|
|
]
|
|
|
|
explicit_package_bases = true
|
|
|
|
|
|
|
|
incremental = true
|
|
|
|
scripts_are_modules = true
|
|
|
|
show_traceback = true
|
|
|
|
|
|
|
|
# Enable strict mode, with some exceptions.
|
|
|
|
strict = true
|
|
|
|
disallow_subclassing_any = false
|
|
|
|
disallow_untyped_calls = false
|
|
|
|
disallow_untyped_decorators = false
|
|
|
|
warn_return_any = false
|
|
|
|
|
|
|
|
# Enable optional errors.
|
|
|
|
enable_error_code = [
|
|
|
|
"redundant-self",
|
2023-10-26 13:41:24 -07:00
|
|
|
"redundant-expr",
|
2021-08-24 20:30:28 -07:00
|
|
|
"truthy-bool",
|
|
|
|
"truthy-iterable",
|
2023-10-26 13:43:42 -07:00
|
|
|
"ignore-without-code",
|
2021-08-24 20:30:28 -07:00
|
|
|
"unused-awaitable",
|
|
|
|
]
|
|
|
|
|
|
|
|
# Other options.
|
|
|
|
warn_unreachable = true
|
|
|
|
|
2023-10-25 15:00:34 -07:00
|
|
|
[tool.pytest.ini_options]
|
|
|
|
pythonpath = [
|
|
|
|
"zulip",
|
|
|
|
"zulip_bots",
|
|
|
|
"zulip_botserver",
|
|
|
|
]
|