Skip to content

Commit bc71591

Browse files
[pre-commit.ci] pre-commit autoupdate (#7507)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/charliermarsh/ruff-pre-commit: v0.0.237 → v0.0.241](astral-sh/ruff-pre-commit@v0.0.237...v0.0.241) - [github.com/psf/black: 22.12.0 → 23.1.0](psf/black@22.12.0...23.1.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent d95e00a commit bc71591

Some content is hidden

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

62 files changed

+18
-224
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ repos:
1616
files: ^xarray/
1717
- repo: https://github.com/charliermarsh/ruff-pre-commit
1818
# Ruff version.
19-
rev: 'v0.0.237'
19+
rev: 'v0.0.241'
2020
hooks:
2121
- id: ruff
2222
args: ["--fix"]
2323
# https://github.com/python/black#version-control-integration
2424
- repo: https://github.com/psf/black
25-
rev: 22.12.0
25+
rev: 23.1.0
2626
hooks:
2727
- id: black
2828
- id: black-jupyter
@@ -31,7 +31,7 @@ repos:
3131
hooks:
3232
- id: blackdoc
3333
exclude: "generate_aggregations.py"
34-
additional_dependencies: ["black==22.12.0"]
34+
additional_dependencies: ["black==23.1.0"]
3535
- id: blackdoc-autoupdate-black
3636
- repo: https://github.com/pre-commit/mirrors-mypy
3737
rev: v0.991

doc/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,6 @@ def update_videos(app: Sphinx):
436436

437437
items = []
438438
for video in videos:
439-
440439
authors = " | ".join(video["authors"])
441440
item = f"""
442441
.. grid-item-card:: {" ".join(video["title"].split())}

doc/examples/apply_ufunc_vectorize_1d.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,6 @@
663663
"\n",
664664
"\n",
665665
"def xr_interp(data, dim, newdim):\n",
666-
"\n",
667666
" interped = xr.apply_ufunc(\n",
668667
" interp1d_np_gufunc, # first the function\n",
669668
" data, # now arguments in the order expected by 'interp1_np'\n",

doc/whats-new.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ What's New
2020
v2023.02.0 (Feb 7. 2023)
2121
------------------------
2222

23-
This release brings a major upgrade to :py:func:`xarray.concat`, bug fixes and
24-
a bump in supported dependency versions. Thanks to our 9 contributors:
25-
Aron Gergely, Deepak Cherian, Illviljan, James Bourbeau, Joe Hamman,
23+
This release brings a major upgrade to :py:func:`xarray.concat`, bug fixes and
24+
a bump in supported dependency versions. Thanks to our 9 contributors:
25+
Aron Gergely, Deepak Cherian, Illviljan, James Bourbeau, Joe Hamman,
2626
Justus Magin, Kai Mühlbauer, Ken Mankoff, Spencer Clark.
2727

2828
Breaking changes

xarray/backends/cfgrib_.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ def open_dataset(
119119
squeeze=True,
120120
time_dims=("time", "step"),
121121
):
122-
123122
filename_or_obj = _normalize_path(filename_or_obj)
124123
store = CfGribDataStore(
125124
filename_or_obj,

xarray/backends/h5netcdf_.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,6 @@ def open_dataset(
401401
phony_dims=None,
402402
decode_vlen_strings=True,
403403
):
404-
405404
filename_or_obj = _normalize_path(filename_or_obj)
406405
store = H5NetCDFStore.open(
407406
filename_or_obj,

xarray/backends/netCDF4_.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,6 @@ def open_dataset(
573573
lock=None,
574574
autoclose=False,
575575
):
576-
577576
filename_or_obj = _normalize_path(filename_or_obj)
578577
store = NetCDF4DataStore.open(
579578
filename_or_obj,

xarray/backends/pseudonetcdf_.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ def open_dataset(
156156
lock=None,
157157
**format_kwargs,
158158
):
159-
160159
filename_or_obj = _normalize_path(filename_or_obj)
161160
store = PseudoNetCDFDataStore.open(
162161
filename_or_obj, lock=lock, mode=mode, **format_kwargs

xarray/backends/pydap_.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ def open_dataset(
178178
verify=None,
179179
user_charset=None,
180180
):
181-
182181
store = PydapDataStore.open(
183182
url=filename_or_obj,
184183
application=application,

xarray/backends/scipy_.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ class ScipyBackendEntrypoint(BackendEntrypoint):
266266
url = "https://docs.xarray.dev/en/stable/generated/xarray.backends.ScipyBackendEntrypoint.html"
267267

268268
def guess_can_open(self, filename_or_obj):
269-
270269
magic_number = try_read_magic_number_from_file_or_path(filename_or_obj)
271270
if magic_number is not None and magic_number.startswith(b"\x1f\x8b"):
272271
with gzip.open(filename_or_obj) as f:
@@ -296,7 +295,6 @@ def open_dataset(
296295
mmap=None,
297296
lock=None,
298297
):
299-
300298
filename_or_obj = _normalize_path(filename_or_obj)
301299
store = ScipyDataStore(
302300
filename_or_obj, mode=mode, format=format, group=group, mmap=mmap, lock=lock

0 commit comments

Comments
 (0)