diff --git a/.github/workflows/full_test.yml b/.github/workflows/full_test.yml index 26a261d3a..999bafbb4 100644 --- a/.github/workflows/full_test.yml +++ b/.github/workflows/full_test.yml @@ -22,6 +22,8 @@ jobs: steps: - uses: actions/checkout@v3 - uses: chartboost/ruff-action@v1 # Fail fast if there are any linting errors + with: + version: 0.5.6 # consistent with pyproject.toml ? - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: diff --git a/mikeio/dataset/_dataarray.py b/mikeio/dataset/_dataarray.py index 556f1552e..890ff3752 100644 --- a/mikeio/dataset/_dataarray.py +++ b/mikeio/dataset/_dataarray.py @@ -221,10 +221,10 @@ def _guess_dims( if isinstance(geometry, GeometryUndefined): DIMS_MAPPING = { - 0: [], - 1: ["x"], - 2: ["y", "x"], - 3: ["z", "y", "x"], + 0: tuple(), + 1: ("x",), + 2: ("y", "x"), + 3: ("z", "y", "x"), } spdims = DIMS_MAPPING[ndim_no_time] else: diff --git a/pyproject.toml b/pyproject.toml index 795bf08c7..18700d344 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,8 +54,8 @@ dev = ["pytest", "xarray", "netcdf4", "rasterio", - "ruff", - "mypy==1.6.1", + "ruff==0.5.6", + "mypy==1.11.1", ] test = ["pytest", "pytest-cov", "xarray","mypy==1.6.1","shapely","pyproj"]