Skip to content

Commit 40450b1

Browse files
[pre-commit.ci] pre-commit autoupdate (#45)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/charliermarsh/ruff-pre-commit: v0.0.260 → v0.0.262](astral-sh/ruff-pre-commit@v0.0.260...v0.0.262) * remove list comprehension --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
1 parent ca73f96 commit 40450b1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repos:
66
- id: black
77
language_version: python3
88
- repo: https://github.com/charliermarsh/ruff-pre-commit
9-
rev: "v0.0.260"
9+
rev: "v0.0.262"
1010
hooks:
1111
- id: ruff
1212

xvec/tests/test_index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def test_align(
129129
):
130130
# test both GeometryIndex's `join` and `reindex_like`
131131
aligned = xr.align(geom_dataset, first_geom_dataset, join="inner")
132-
assert all([ds.identical(first_geom_dataset) for ds in aligned])
132+
assert all(ds.identical(first_geom_dataset) for ds in aligned)
133133

134134
# test conflicting CRS
135135
crs = CRS.from_user_input(4267)
@@ -144,7 +144,7 @@ def test_align(
144144
# no CRS
145145
first_geom_dataset_no_crs = geom_dataset_no_crs.isel(geom=[0])
146146
aligned = xr.align(geom_dataset_no_crs, first_geom_dataset_no_crs, join="inner")
147-
assert all([ds.identical(first_geom_dataset_no_crs) for ds in aligned])
147+
assert all(ds.identical(first_geom_dataset_no_crs) for ds in aligned)
148148

149149

150150
def test_roll(geom_dataset, geom_array):

0 commit comments

Comments
 (0)