Skip to content

Commit ad71eb6

Browse files
[pre-commit.ci] pre-commit autoupdate (#124)
1 parent 26144a8 commit ad71eb6

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repos:
1010
- id: double-quote-string-fixer
1111

1212
- repo: https://github.com/psf/black
13-
rev: 22.12.0
13+
rev: 23.1.0
1414
hooks:
1515
- id: black
1616
args: ["--line-length", "100", "--skip-string-normalization"]

tests/test_core.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ def test_unknown_array_type_raises():
171171

172172

173173
def test_dataarray_empty_constructor():
174-
175174
da = xr.DataArray(np.ones(4, dtype='i4'))
176175
da_schema = DataArraySchema()
177176
assert hasattr(da_schema, 'validate')
@@ -222,7 +221,6 @@ def test_dataset_empty_constructor():
222221

223222

224223
def test_dataset_example(ds):
225-
226224
ds_schema = DatasetSchema(
227225
{
228226
'foo': DataArraySchema(name='foo', dtype=np.int32, dims=['x']),

xarray_schema/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class SchemaError(Exception):
1010

1111

1212
class BaseSchema:
13-
1413
_json_schema: Dict[str, Any]
1514

1615
# def validate(self, obj: Any) -> None:

xarray_schema/dataset.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def __init__(
3434
attrs: Union[AttrsSchema, Dict[Hashable, AttrSchema], None] = None,
3535
checks: Iterable[Callable] = None,
3636
) -> None:
37-
3837
self.data_vars = data_vars # type: ignore
3938
self.coords = coords # type: ignore
4039
self.attrs = attrs # type: ignore

0 commit comments

Comments
 (0)