Skip to content

Commit 26296ac

Browse files
committed
chore: pin climate_ref_client as known-third-party for ruff isort
The generated client lives at the repo root after the docs notebook runs `uvx openapi-python-client ... --output-path climate_ref_client`, which makes ruff's isort heuristic flip-flop between treating it as first-party (locally, dir present) and third-party (CI fresh checkout). Pinning it as third-party keeps the import grouping stable across environments and unblocks the pre-commit job.
1 parent f8f04c8 commit 26296ac

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/how-to-guides/using-pre-computed-results.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
import requests
5757
import seaborn as sns
5858
import xarray as xr
59+
from climate_ref_client import Client
5960
from climate_ref_client.api.diagnostics import (
6061
diagnostics_list,
6162
diagnostics_list_metric_values,
@@ -67,8 +68,6 @@
6768
from IPython.display import Markdown
6869
from pandas_indexing import formatlevel
6970

70-
from climate_ref_client import Client
71-
7271
# %%
7372
# %load_ext rich
7473

ruff.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ ignore = [
5858

5959
[lint.isort]
6060
known-first-party = ["climate_ref", "climate_ref_core"]
61+
known-third-party = ["climate_ref_client"]
6162

6263
[lint.pydocstyle]
6364
convention = "numpy"

0 commit comments

Comments
 (0)