Skip to content

fix(ci): Ruff isort known-first-party (unblock CI & deploy) - #311

Merged
mottych merged 1 commit into
devfrom
fix/ci-ruff-isort-known-first-party
Apr 10, 2026
Merged

fix(ci): Ruff isort known-first-party (unblock CI & deploy)#311
mottych merged 1 commit into
devfrom
fix/ci-ruff-isort-known-first-party

Conversation

@mottych

@mottych mottych commented Apr 10, 2026

Copy link
Copy Markdown
Owner

Cause

GitHub CI/CD Pipeline and Deploy Dev failed on ruff check with I001 on unified_ai_engine.py after merging #310.

Ruff resolves coaching/pyproject.toml for files under coaching/. That file had no [tool.ruff.lint.isort] known-first-party, so coaching.* imports were sorted as third-party relative to structlog / pydantic, producing invalid import blocks.

Fix

  • Add known-first-party = ["coaching", "shared"] to coaching/pyproject.toml (aligned with repo root pyproject.toml).
  • Run ruff check coaching/ --fix so the tree matches the corrected isort rules (~199 I001 fixes).

Verification

  • ruff==0.8.4 ruff check coaching/ shared/ — clean
  • pytest coaching/tests/unit/application/ai_engine/test_llm_json_schema_adaptation.py — 5 passed

Unblocks redeploy to dev.

coaching/pyproject.toml lacked [tool.ruff.lint.isort] known-first-party, so Ruff treated coaching.* as third-party and failed I001 (e.g. unified_ai_engine.py), breaking CI/CD and Deploy Dev after #310.

Add known-first-party matching repo root; apply ruff check --fix across coaching/ for consistent import blocks.

Made-with: Cursor
@mottych
mottych merged commit 233cee5 into dev Apr 10, 2026
2 checks passed
@mottych
mottych deleted the fix/ci-ruff-isort-known-first-party branch April 15, 2026 17:56
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.

1 participant