Skip to content

Commit 22adfc4

Browse files
committed
:/
1 parent ddf572f commit 22adfc4

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,11 @@ jobs:
4848

4949
- name: Run linting
5050
run: |
51+
# First, check imports with isort using Black profile
52+
poetry run isort --profile=black --check-only .
53+
# Then, check formatting with Black
5154
poetry run black --check .
52-
poetry run isort --check-only .
55+
# Then, check types
5356
poetry run mypy src/
5457
5558
- name: Run tests

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,10 @@ extend-exclude = '''
119119

120120
[tool.isort]
121121
profile = "black"
122-
multi_line_output = 3
123122
line_length = 88
123+
multi_line_output = 3
124124
known_first_party = ["mdbub"]
125+
# Ensure isort and Black are fully compatible
125126

126127
[tool.ruff]
127128
ignore = ["E501"]

src/mdbub/core/mindmap.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ def __init__(
2525
self.color = color
2626
self.icon = icon
2727
self.metadata = metadata or {}
28-
self.parent: Optional[
29-
"MindMapNode"
30-
] = None # Reference to parent node, useful for navigation
28+
self.parent: Optional["MindMapNode"] = (
29+
None # Reference to parent node, useful for navigation
30+
)
3131

3232
def add_child(self, child: "MindMapNode") -> None:
3333
self.children.append(child)

0 commit comments

Comments
 (0)