Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
ruff: Enable annotations errors.
Anders Kaseorgcc01c68aa9e6
diff --git a/pyproject.toml b/pyproject.tomlindex afac7f2a8f8..3257bc04e77 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -100,6 +100,7 @@ django_settings_module = "zproject.settings"[tool.ruff]# See https://github.com/charliermarsh/ruff#rules for error code definitions.select = [+ "ANN", # annotations"B", # bugbear"C", # comprehensions"E", # style errors@@ -109,6 +110,9 @@ select = ["W", # style warnings]ignore = [+ "ANN101", # Missing type annotation for `self` in method+ "ANN102", # Missing type annotation for `cls` in classmethod+ "ANN401", # Dynamically typed expressions (typing.Any) are disallowed"B006", # Do not use mutable data structures for argument defaults"B007", # Loop control variable not used within the loop body"B008", # Do not perform function calls in argument defaults.