Skip to content

Commit

Permalink
Merge pull request #711 from DHI/mypy
Browse files Browse the repository at this point in the history
Update ruff and mypy to latest versions
  • Loading branch information
ecomodeller authored Aug 6, 2024
2 parents 88d611b + 101b423 commit 5c512c0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/full_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions mikeio/dataset/_dataarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 5c512c0

Please sign in to comment.