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>
# 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
# 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
from . import sources # noqa: F401
from . import threads # noqa: F401
+# isort: split
from .server import Server
# E701: Multiple statements on one line (colon)
# W503: line break before binary operator
ignore = E203,E501,E701,W503
+
+[isort]
+profile = black