diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5a6d70f..e2e3155 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -14,7 +14,7 @@ repos: - id: check-yaml - repo: https://github.com/psf/black - rev: 23.9.1 + rev: 23.12.1 hooks: - id: black-jupyter @@ -27,17 +27,17 @@ repos: hooks: - id: seed-isort-config - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.3 + rev: v4.0.0-alpha.8 hooks: - id: prettier - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.5.1 + rev: v1.8.0 hooks: - id: mypy additional_dependencies: [ diff --git a/xbatcher/testing.py b/xbatcher/testing.py index 36de58f..dd2139d 100644 --- a/xbatcher/testing.py +++ b/xbatcher/testing.py @@ -183,7 +183,7 @@ def validate_batch_dimensions( # Check the names and lengths of the dimensions are equal TestCase().assertDictEqual( - expected_dims, batch.sizes.mapping, msg="Dimension names and/or lengths differ" + expected_dims, dict(batch.sizes), msg="Dimension names and/or lengths differ" ) # Check the dimension order is equal for var in batch.data_vars: