public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
From: Tom Tromey <tromey@sourceware.org>
To: gdb-cvs@sourceware.org
Subject: [binutils-gdb] Prepare gdb for isort
Date: Tue,  2 Apr 2024 17:21:53 +0000 (GMT)	[thread overview]
Message-ID: <20240402172154.175153858C74@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=68982f618b28aebf47343922fb79e59ace0246eb

commit 68982f618b28aebf47343922fb79e59ace0246eb
Author: Tom Tromey <tromey@adacore.com>
Date:   Wed Mar 20 09:36:40 2024 -0600

    Prepare gdb for isort
    
    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>

Diff:
---
 gdb/python/lib/gdb/__init__.py     | 2 ++
 gdb/python/lib/gdb/dap/__init__.py | 3 +++
 gdb/setup.cfg                      | 3 +++
 3 files changed, 8 insertions(+)

diff --git a/gdb/python/lib/gdb/__init__.py b/gdb/python/lib/gdb/__init__.py
index aae0d3680aa..9db91d8261b 100644
--- a/gdb/python/lib/gdb/__init__.py
+++ b/gdb/python/lib/gdb/__init__.py
@@ -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
diff --git a/gdb/python/lib/gdb/dap/__init__.py b/gdb/python/lib/gdb/dap/__init__.py
index 784015d1a07..51b95468a70 100644
--- a/gdb/python/lib/gdb/dap/__init__.py
+++ b/gdb/python/lib/gdb/dap/__init__.py
@@ -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
 
 
diff --git a/gdb/setup.cfg b/gdb/setup.cfg
index 2e83eb5cf56..d33058ea7f0 100644
--- a/gdb/setup.cfg
+++ b/gdb/setup.cfg
@@ -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

                 reply	other threads:[~2024-04-02 17:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240402172154.175153858C74@sourceware.org \
    --to=tromey@sourceware.org \
    --cc=gdb-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).