[1/2] Prepare gdb for isort
Checks
Commit Message
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.
---
gdb/python/lib/gdb/__init__.py | 1 +
gdb/python/lib/gdb/dap/__init__.py | 2 ++
gdb/setup.cfg | 3 +++
3 files changed, 6 insertions(+)
@@ -27,6 +27,7 @@ else:
from imp import reload
# Note that two indicators are needed here to silence flake8.
+# isort: split
from _gdb import * # noqa: F401,F403
# Historically, gdb.events was always available, so ensure it's
@@ -16,6 +16,7 @@
import os
# This must come before other DAP imports.
+# isort: split
from . import startup
# Load modules that define commands. These imports intentionally
@@ -36,6 +37,7 @@ from . import scopes # noqa: F401
from . import sources # noqa: F401
from . import threads # noqa: F401
+# isort: split
from .server import Server
@@ -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