Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
ruff: Extend the default rule selection.
Anders Kaseorg8d2ad9c5cade
diff --git a/pyproject.toml b/pyproject.tomlindex 026a69fc99e..f3d8ab9e584 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -463,7 +463,7 @@ target-version = "py310"[tool.ruff.lint]# See https://github.com/astral-sh/ruff#rules for error code definitions.-select = [+extend-select = ["ANN", # annotations"B", # bugbear"C4", # comprehensions@@ -503,6 +503,7 @@ ignore = ["ANN401", # Dynamically typed expressions (typing.Any) are disallowed"B007", # Loop control variable not used within the loop body"B904", # Within an except clause, raise exceptions with raise ... from err or raise ... from None to distinguish them from errors in exception handling+ "BLE001", # Do not catch blind exception"C408", # Unnecessary `dict` call (rewrite as a literal)"COM812", # Trailing comma missing"DJ001", # Avoid using `null=True` on string-based fields@@ -550,6 +551,8 @@ ignore = ["TC002", # Move third-party import into a type-checking block"TC003", # Move standard library import into a type-checking block"TC006", # Add quotes to type expression in `typing.cast()`+ "TRY002", # Create your own exception+ "TRY004", # Prefer `TypeError` exception for invalid type][tool.ruff.lint.flake8-bandit]diff --git a/tools/run-dev b/tools/run-devindex 3b120c39c0d..f8978ad72f8 100755--- a/tools/run-dev+++ b/tools/run-dev@@ -477,7 +477,7 @@ async def serve() -> None:setup_routes(options.help_center_static_build, options.help_center_dev_server)- children.extend(subprocess.Popen(cmd) for cmd in server_processes())+ children.extend(subprocess.Popen(cmd) for cmd in server_processes()) # noqa: ASYNC220session = aiohttp.ClientSession()runner = web.AppRunner(app, auto_decompress=False, handler_cancellation=True)