]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Prepare gdb for isort
authorTom Tromey <tromey@adacore.com>
Wed, 20 Mar 2024 15:36:40 +0000 (09:36 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 2 Apr 2024 17:21:31 +0000 (11:21 -0600)
This patch prepares gdb for isort: it adds a couple of isort marker
comments where needed, and it adds an isort clause to setup.cfg.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/python/lib/gdb/__init__.py
gdb/python/lib/gdb/dap/__init__.py
gdb/setup.cfg

index aae0d3680aaad2a4ffdeece62f78b0d5c1952e4d..9db91d8261b65a8ebc22ba9762355a8e6b1a54b1 100644 (file)
@@ -31,6 +31,8 @@ import _gdb
 # Note that two indicators are needed here to silence flake8.
 from _gdb import *  # noqa: F401,F403
 
+# isort: split
+
 # Historically, gdb.events was always available, so ensure it's
 # still available without an explicit import.
 import _gdbevents as events
index 784015d1a074f5867a1d7e83faf1814c615347a2..51b95468a7026ea1d5c8859b5dc414250e18b48e 100644 (file)
@@ -18,6 +18,8 @@ import os
 # This must come before other DAP imports.
 from . import startup
 
+# isort: split
+
 # Load modules that define commands.  These imports intentionally
 # ignore the unused import warning, as these modules are being loaded
 # for their side effects -- namely, registering DAP commands with the
@@ -36,6 +38,7 @@ from . import scopes  # noqa: F401
 from . import sources  # noqa: F401
 from . import threads  # noqa: F401
 
+# isort: split
 from .server import Server
 
 
index 2e83eb5cf5690a9d31dc778ba9203f7eb5528e9b..d33058ea7f0fa9b2bacc3cbde4e046e1a1bf20cf 100644 (file)
@@ -7,3 +7,6 @@
 # E701: Multiple statements on one line (colon)
 # W503: line break before binary operator
 ignore = E203,E501,E701,W503
+
+[isort]
+profile = black