From 9863090c587d6dd508fe0927dc616e521197e6be Mon Sep 17 00:00:00 2001 From: Azide Date: Thu, 15 Aug 2024 23:04:37 +0800 Subject: [PATCH] =?UTF-8?q?:wrench:=20=E6=8C=89ruff=E5=BB=BA=E8=AE=AE?= =?UTF-8?q?=E4=BF=AE=E6=94=B9ruff=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `pyproject.toml`: - 'ignore' -> 'lint.ignore' - 'select' -> 'lint.select' --- pyproject.toml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6f975843..cdc0ef1a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -95,12 +95,13 @@ markers = [ asyncio_mode = "auto" [tool.ruff] -select = ["E", "W", "F", "UP", "C", "T", "PYI", "PT", "Q"] -ignore = ["E402", "C901", "PT023"] - line-length = 120 target-version = "py310" +[tool.ruff.lint] +select = ["E", "W", "F", "UP", "C", "T", "PYI", "PT", "Q"] +ignore = ["E402", "C901", "PT023"] + [tool.black] line-length = 120 preview = true