Skip to content

Commit ebe61d4

Browse files
committed
ran precommit and updated test versions in CI
1 parent 562eff8 commit ebe61d4

File tree

6 files changed

+12
-7
lines changed

6 files changed

+12
-7
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fail-fast: false
1010
matrix:
1111
os: ["macos-latest", "ubuntu-latest", "windows-latest"]
12-
python-version: ["3.10", "3.11", "3.12"]
12+
python-version: ["3.11", "3.12", "3.13"]
1313
steps:
1414
- name: Checkout source
1515
uses: actions/checkout@v4

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
repos:
22

33
- repo: https://github.com/econchick/interrogate
4-
rev: 1.2.0
4+
rev: 1.6.0
55
hooks:
66
- id: interrogate
77
exclude: ^(docs|setup.py|tests)

ci/environment-py3.12.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies:
66
- cf_xarray
77
- dask
88
- netcdf4
9-
- numpy
9+
- numpy
1010
- pip
1111
- requests
1212
- scikit-learn

extract_model/extract_model.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,15 +617,19 @@ def pt_in_itriangle_proj(ix, iy):
617617
with warnings.catch_warnings():
618618
warnings.simplefilter("ignore")
619619
da = xgcm_grid.transform(
620-
da, "Z", np.array(Z), target_data=da.cf["vertical"], method="linear"
620+
da,
621+
"Z",
622+
np.array(Z),
623+
target_data=da.cf["vertical"],
624+
method="linear",
621625
)
622626
da[zkey].attrs = z_attrs
623627
da = order(da) # reorder dimensions to convention
624628
elif isinstance(da, xr.Dataset):
625629
da_calcs = {}
626630
for data_var in da.data_vars:
627631
if "s_rho" in da.dims:
628-
dause = da[data_var].chunk({"s_rho": -1})#.copy()
632+
dause = da[data_var].chunk({"s_rho": -1}) # .copy()
629633
else:
630634
dause = da[data_var]
631635
with warnings.catch_warnings():

extract_model/preprocessing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
"""Preprocessing-related functions for model output."""
22

33

4-
from typing import Optional
54
import warnings
65

6+
from typing import Optional
7+
78
import numpy as np
89
import xarray as xr
910

extract_model/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def f_standard_names(value):
140140
to_merge.append(ds.filter_by_attrs(standard_name=f_standard_names))
141141

142142
# Combine
143-
return xr.merge(to_merge, compat='no_conflicts')
143+
return xr.merge(to_merge, compat="no_conflicts")
144144

145145

146146
def naive_subbox(ds: xr.Dataset, bbox: BBoxType, dask_array_chunks: bool = False):

0 commit comments

Comments
 (0)