Skip to content

Commit 518cd6e

Browse files
committed
Merge branch 'main' into concat_default_kwargs
* main: (94 commits) Restructure API documentation into organized sections (pydata#10540) Fix convert calendar with different dimension name (pydata#10544) Fix kerchunk error in docs build (pydata#10545) Call super().__init__() in st.SearchStrategy subclasses (pydata#10543) CI: update actions location (pydata#10529) meta: Fix labeler topic-documentation (pydata#10524) drop_vars: use emit_user_level_warning (pydata#10528) Pydap flaky tests (pydata#10525) Remove test skip (pydata#10523) Improve warning message and tests for timedelta decoding (pydata#10508) Add dev whats-new (pydata#10522) Add release notes for v2025.07.1 (pydata#10520) Updates for Zarr 3 Dtypes (pydata#10456) Update Custom Indexes section in api.rst (pydata#10517) Expression not assigned (pydata#10507) Raise if `Index.create_variables` returns more variables than passed in through `set_xindex` (pydata#10503) Allow setting (or skipping) new indexes in open_dataset (pydata#8051) doc: add Pandas(Multi)Index to api reference (pydata#10515) Update pre-commit hooks (pydata#10510) Update pre-commit ruff legacy alias (pydata#10511) ...
2 parents 63c5905 + 4fde699 commit 518cd6e

File tree

198 files changed

+6832
-4261
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

198 files changed

+6832
-4261
lines changed

.binder/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: xarray-examples
22
channels:
33
- conda-forge
44
dependencies:
5-
- python=3.10
5+
- python=3.11
66
- boto3
77
- bottleneck
88
- cartopy

.github/labeler.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,10 @@ topic-DataTree:
4545
- xarray/core/datatree*
4646

4747
topic-documentation:
48-
- changed-files:
49-
- any-glob-to-any-file:
50-
- doc/*
51-
- "!doc/whats-new.rst"
52-
- doc/**/*
48+
- all:
49+
- changed-files:
50+
- any-glob-to-any-file: "doc/**/*"
51+
- all-globs-to-all-files: "!doc/whats-new.rst"
5352

5453
topic-groupby:
5554
- changed-files:

.github/workflows/benchmarks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
env:
1717
ASV_DIR: "./asv_bench"
18-
CONDA_ENV_FILE: ci/requirements/environment.yml
18+
CONDA_ENV_FILE: ci/requirements/environment-benchmark.yml
1919

2020
steps:
2121
# We need the full repo to avoid this issue
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
micromamba-version: "1.5.10-0"
3131
environment-file: ${{env.CONDA_ENV_FILE}}
32-
environment-name: xarray-tests
32+
environment-name: xarray-benchmark
3333
cache-environment: true
3434
cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}-benchmark"
3535
# add "build" because of https://github.com/airspeed-velocity/asv/issues/1385

.github/workflows/ci-additional.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,15 @@ jobs:
132132
fail_ci_if_error: false
133133

134134
mypy-min:
135-
name: Mypy 3.10
135+
name: Mypy 3.11
136136
runs-on: "ubuntu-latest"
137137
needs: detect-ci-trigger
138138
defaults:
139139
run:
140140
shell: bash -l {0}
141141
env:
142142
CONDA_ENV_FILE: ci/requirements/environment.yml
143-
PYTHON_VERSION: "3.10"
143+
PYTHON_VERSION: "3.11"
144144

145145
steps:
146146
- uses: actions/checkout@v4
@@ -239,7 +239,7 @@ jobs:
239239
fail_ci_if_error: false
240240

241241
pyright39:
242-
name: Pyright 3.10
242+
name: Pyright 3.11
243243
runs-on: "ubuntu-latest"
244244
needs: detect-ci-trigger
245245
if: |
@@ -252,7 +252,7 @@ jobs:
252252
shell: bash -l {0}
253253
env:
254254
CONDA_ENV_FILE: ci/requirements/environment.yml
255-
PYTHON_VERSION: "3.10"
255+
PYTHON_VERSION: "3.11"
256256

257257
steps:
258258
- uses: actions/checkout@v4

.github/workflows/ci.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,18 @@ jobs:
4747
matrix:
4848
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
4949
# Bookend python versions
50-
python-version: ["3.10", "3.13"]
50+
python-version: ["3.11", "3.13"]
5151
env: [""]
5252
include:
5353
# Minimum python version:
5454
- env: "bare-minimum"
55-
python-version: "3.10"
55+
python-version: "3.11"
56+
os: ubuntu-latest
57+
- env: "bare-min-and-scipy"
58+
python-version: "3.11"
5659
os: ubuntu-latest
5760
- env: "min-all-deps"
58-
python-version: "3.10"
61+
python-version: "3.11"
5962
os: ubuntu-latest
6063
# Latest python version:
6164
- env: "all-but-numba"
@@ -70,7 +73,7 @@ jobs:
7073
# The mypy tests must be executed using only 1 process in order to guarantee
7174
# predictable mypy output messages for comparison to expectations.
7275
- env: "mypy"
73-
python-version: "3.10"
76+
python-version: "3.11"
7477
numprocesses: 1
7578
os: ubuntu-latest
7679
- env: "mypy"

.github/workflows/hypothesis.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
&& steps.status.outcome == 'failure'
111111
&& github.event_name == 'schedule'
112112
&& github.repository_owner == 'pydata'
113-
uses: xarray-contrib/issue-from-pytest-log@v1
113+
uses: scientific-python/issue-from-pytest-log-action@v1
114114
with:
115115
log-path: output-${{ matrix.python-version }}-log.jsonl
116116
issue-title: "Nightly Hypothesis tests failed"

.github/workflows/pypi-release.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,19 @@ on:
66
push:
77
tags:
88
- "v*"
9+
pull_request:
10+
types: [opened, reopened, synchronize, labeled]
11+
workflow_dispatch:
912

1013
jobs:
1114
build-artifacts:
1215
runs-on: ubuntu-latest
13-
if: github.repository == 'pydata/xarray'
16+
if: ${{ github.repository == 'pydata/xarray' && (
17+
(contains(github.event.pull_request.labels.*.name, 'Release') && github.event_name == 'pull_request') ||
18+
github.event_name == 'release' ||
19+
github.event_name == 'workflow_dispatch' ||
20+
startsWith(github.ref, 'refs/tags/v')
21+
) }}
1422
steps:
1523
- uses: actions/checkout@v4
1624
with:
@@ -64,7 +72,6 @@ jobs:
6472
ls -ltrh dist
6573
6674
- name: Verify the built dist/wheel is valid
67-
if: github.event_name == 'push'
6875
run: |
6976
python -m pip install --upgrade pip
7077
python -m pip install dist/xarray*.whl

.github/workflows/upstream-dev-ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
&& steps.status.outcome == 'failure'
9393
&& github.event_name == 'schedule'
9494
&& github.repository_owner == 'pydata'
95-
uses: xarray-contrib/issue-from-pytest-log@v1
95+
uses: scientific-python/issue-from-pytest-log-action@v1
9696
with:
9797
log-path: output-${{ matrix.python-version }}-log.jsonl
9898

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ __pycache__
1010
doc/*.nc
1111
doc/auto_gallery
1212
doc/rasm.zarr
13-
doc/savefig
1413

1514
# C extensions
1615
*.so
@@ -71,8 +70,12 @@ asv_bench/pkgs
7170
# xarray specific
7271
doc/_build
7372
doc/generated/
73+
doc/api/generated/
7474
xarray/tests/data/*.grib.*.idx
7575

76+
# Claude Code
77+
.claude/
78+
7679
# Sync tools
7780
Icon*
7881

.pre-commit-config.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,24 @@ repos:
2424
- id: rst-inline-touching-normal
2525
- id: text-unicode-replacement-char
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
# Ruff version.
28-
rev: v0.11.8
27+
rev: v0.12.2
2928
hooks:
30-
- id: ruff-format
31-
- id: ruff
29+
- id: ruff-check
3230
args: ["--fix", "--show-fixes"]
31+
- id: ruff-format
3332
- repo: https://github.com/keewis/blackdoc
34-
rev: v0.3.9
33+
rev: v0.4.1
3534
hooks:
3635
- id: blackdoc
3736
exclude: "generate_aggregations.py"
3837
additional_dependencies: ["black==24.8.0"]
3938
- repo: https://github.com/rbubley/mirrors-prettier
40-
rev: v3.5.3
39+
rev: v3.6.2
4140
hooks:
4241
- id: prettier
4342
args: [--cache-location=.prettier_cache/cache]
4443
- repo: https://github.com/pre-commit/mirrors-mypy
45-
rev: v1.15.0
44+
rev: v1.16.1
4645
hooks:
4746
- id: mypy
4847
# Copied from setup.cfg

0 commit comments

Comments
 (0)