Skip to content

Commit 10787c3

Browse files
committed
fix: satisfy ruff import ordering
1 parent 57c7079 commit 10787c3

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

src/opencmo/storage/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@
115115
upsert_github_lead,
116116
)
117117

118+
# --- GitHub stats cache (Built-in-open block) ---
119+
from opencmo.storage.github_stats_cache import (
120+
get_cached_github_stats,
121+
set_cached_github_stats,
122+
)
123+
118124
# --- Graph expansion ---
119125
from opencmo.storage.graph import (
120126
add_expansion_edge,
@@ -232,12 +238,6 @@
232238
is_valid_email,
233239
)
234240

235-
# --- GitHub stats cache (Built-in-open block) ---
236-
from opencmo.storage.github_stats_cache import (
237-
get_cached_github_stats,
238-
set_cached_github_stats,
239-
)
240-
241241

242242
def __getattr__(name: str):
243243
if name == "_DB_PATH":

src/opencmo/web/github_stats.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from typing import Optional, TypedDict
1616

1717
from opencmo.storage import get_cached_github_stats, set_cached_github_stats
18+
1819
# Note: ``get_github_token`` is NOT imported here — token resolution is
1920
# done inside ``github_get_with_headers``. Importing it would trip Ruff F401.
2021
from opencmo.tools.github_api import github_get_with_headers

tests/test_github_stats.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ async def fake_get(path, params=None):
266266
monkeypatch.setattr(gs_module, "github_get_with_headers", fake_get)
267267

268268
from fastapi.testclient import TestClient
269+
269270
from opencmo.web.app import app
270271

271272
with TestClient(app) as client:

0 commit comments

Comments
 (0)