Skip to content

Commit

Permalink
another instances of ignoring E499 [*index]
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Aschwanden committed Dec 19, 2023
1 parent 43c8395 commit 1739a9b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_extract_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"""

from itertools import permutations
from pathlib import Path
from typing import Any

import numpy as np
Expand Down Expand Up @@ -84,7 +85,7 @@ def T(x):
if "z" in dimensions:
for k in range(Mz):
indexes[dimensions.index("z")] = k
variable[*indexes] = T(F(xx, yy, z[k]))
variable[*indexes] = T(F(xx, yy, z[k])) # noqa: E499
else:
variable[*indexes] = T(F(xx, yy, 0))

Expand Down Expand Up @@ -456,8 +457,8 @@ def test_read_shapefile():
Test reading a shapefile
"""
filenames = [
"tests/data/greenland-flux-gates-29_500m.shp",
"tests/data/greenland-flux-gates-29_500m.gpkg",
Path("tests/data/greenland-flux-gates-29_500m.shp"),
Path("tests/data/greenland-flux-gates-29_500m.gpkg"),
]

for filename in filenames:
Expand Down

0 comments on commit 1739a9b

Please sign in to comment.