Skip to content

Fix lint on main (graph_layout.py + dimensionality.py)#197

Merged
realmarcin merged 1 commit into
mainfrom
fix/lint-main-graphlayout-dimensionality
Jul 4, 2026
Merged

Fix lint on main (graph_layout.py + dimensionality.py)#197
realmarcin merged 1 commit into
mainfrom
fix/lint-main-graphlayout-dimensionality

Conversation

@realmarcin

Copy link
Copy Markdown
Contributor

Why

The lint CI job (black + ruff + mypy) has been red on main. #190/#194 merged embedding/graph_layout.py and PaCMAP code that fail black/ruff/mypy; the failure was masked on downstream PRs because black exits before ruff/mypy run. This is why open PRs #187 and #189 show a red lint check — they inherit main's breakage.

What

  • graph_layout.py: black reformat; sort imports (I001); rename adjacency matrix Aadj (N806); zip(..., strict=True) (B905); # type: ignore[import-untyped] on the sklearn imports (matches the existing umap/pacmap pattern).
  • dimensionality.py: rename Xnormalized_vectors (N806); type-ignore the sklearn.preprocessing import.

Behavior-neutral. black --check + ruff check + mypy all pass locally; sfdp_layout smoke-tested on a real 6×4 matrix.

🤖 Generated with Claude Code

The `lint` CI job (black + ruff + mypy) has been red on main: PRs #190/#194
merged embedding/graph_layout.py and PaCMAP code that fail black/ruff/mypy,
and the failure was masked on downstream PRs because black exits first.

- graph_layout.py: black reformat; sort imports (I001); rename adjacency
  matrix A -> adj (N806); zip(..., strict=True) (B905); type: ignore the
  sklearn imports (import-untyped), matching the existing umap/pacmap pattern.
- dimensionality.py: rename X -> normalized_vectors (N806); type: ignore the
  sklearn.preprocessing import.

Behavior-neutral. black + ruff + mypy now all pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 4, 2026 22:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@realmarcin realmarcin merged commit 208873d into main Jul 4, 2026
2 checks passed
@realmarcin realmarcin deleted the fix/lint-main-graphlayout-dimensionality branch July 4, 2026 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants