Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

ruff: Upgrade configuration for Ruff v0.2.0.

Charlie Marshc8e77b6cac94
diff --git a/pyproject.toml b/pyproject.toml
index 9b0c549b69e..52815cb0469 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -99,6 +99,11 @@ init_typed = true
warn_required_dynamic_aliases = true
[tool.ruff]
+line-length = 100
+src = [".", "tools"]
+target-version = "py38"
+
+[tool.ruff.lint]
# See https://github.com/astral-sh/ruff#rules for error code definitions.
select = [
"ANN", # annotations
@@ -180,13 +185,10 @@ ignore = [
"SIM117", # Use a single `with` statement with multiple contexts instead of nested `with` statements
"SIM401", # Use `d.get(key, default)` instead of an `if` block
]
-line-length = 100
-src = [".", "tools"]
-target-version = "py38"
-[tool.ruff.flake8-gettext]
+[tool.ruff.lint.flake8-gettext]
extend-function-names = ["gettext_lazy"]
-[tool.ruff.isort]
+[tool.ruff.lint.isort]
known-third-party = ["zulip"]
split-on-trailing-comma = false