fix(lint): clear import-bucket ruff debt — PLC0415/F401/E402/I001 (issue #100) #112
No reviewers
Labels
No labels
agentic-osint
audit
blocked:commit-ready-failed
blocked:gate-fetch
blocked:gate-fetch
blocked:gate-lint
blocked:gate-plan
blocked:gate-research
blocked:needs-decision
blocked:needs-human
blocked:no-changes
blocked:preflight
blocked:verify-failed
bug
chore
deferred
enhancement
feature-request
in-progress
lint-baseline
lint-cleanup
needs-decompose
needs-triage
performance
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/osint-hub!112
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/100-ruff-imports"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Clears the bucket-imports ruff debt for issue #100 (import bucket, card t_16fe10e9).
Rules in scope: PLC0415 (import-outside-top-level), F401 (unused-import), F811 (redefined), E402 (module-import-not-at-top), I001 (unsorted-imports).
Verification (ruff 0.15.17, the CI-pinned version):
cd backend && ruff check . --select F401,F811,E402,PLC0415 --statistics→ 0 errors (was 316 on origin/main)cd backend && ruff check app/ --config ../pyproject.toml --select F401,F811,E402,PLC0415 --statistics→ 0 errorsruff format --check app/→ cleanpython -c "import app.main"+ 15 key modules import without circular-import errorsChanges:
pytestmarkbelow import blocks in 17 test files (behavior-neutral; marker only needs to exist at module level); fixed app files orchestrator.py, prompts/init.py, semantic_retrieval.py; 2# noqa: E402with justification where imports must follow a runtime gate (importorskip / end-of-file asyncio).isort.known-first-party=["app"](fixes path-duality) + import re-sorting.app/...) for the 4 F401 re-export/conditional-import files so both gate shapes agree.Out of scope (by decomposition): UP042/UP047 (5, bucket-modernize → t_5e6e7536), E/W whitespace (bucket-style → t_1883bcd9), S-rules (bucket-security → t_5eecc109/PR #111).
Issues: #100
Pull request closed