From c8e77b6cac94176ae7729f48eaa799f46b74ae39 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Thu, 1 Feb 2024 18:08:03 -0500 Subject: [PATCH] ruff: Upgrade configuration for Ruff v0.2.0. --- pyproject.toml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9b0c549b69..52815cb046 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