Skip to content

Commit a9f5964

Browse files
committed
build(lint): configure isort known-first-party for deterministic import grouping
Without explicit known-first-party, ruff classifies coordinode as third-party when the package is not installed as editable (e.g. plain `uv sync` in the lint job). This caused inconsistent blank-line requirements across test files. Setting known-first-party ensures consistent import grouping regardless of the install state.
1 parent 2a1b542 commit a9f5964

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

ruff.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ select = ["E", "F", "I", "W", "UP"]
1313
ignore = [
1414
"E501", # line length handled by formatter
1515
]
16+
17+
[lint.isort]
18+
known-first-party = ["coordinode", "langchain_coordinode", "llama_index_coordinode"]

tests/unit/test_types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"""
77

88
import pytest
9+
910
from coordinode._types import from_property_value, to_property_value
1011

1112
# Detect whether proto stubs have been generated.

0 commit comments

Comments
 (0)