From 727ee2e293d504d687796ab871a7215a10d086d9 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 17 Sep 2025 09:36:45 -0600 Subject: [PATCH] Move isort config to pyproject.toml My understanding is that pyproject.toml is the "new" way to configure Python tools. Although setup.cfg can't yet be removed (flake8 has some issue with pyproject.toml), we can move the isort config here. Approved-By: Simon Marchi --- gdb/pyproject.toml | 3 +++ gdb/setup.cfg | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/pyproject.toml b/gdb/pyproject.toml index 4469f1cd61d..144c48947ee 100644 --- a/gdb/pyproject.toml +++ b/gdb/pyproject.toml @@ -3,3 +3,6 @@ include = "\\.py(\\.in)?$" [tool.pyright] typeCheckingMode = "strict" + +[tool.isort] +profile = "black" diff --git a/gdb/setup.cfg b/gdb/setup.cfg index d33058ea7f0..2e83eb5cf56 100644 --- a/gdb/setup.cfg +++ b/gdb/setup.cfg @@ -7,6 +7,3 @@ # E701: Multiple statements on one line (colon) # W503: line break before binary operator ignore = E203,E501,E701,W503 - -[isort] -profile = black