Skip to content

Commit 2541547

Browse files
authored
Bump ruff to 0.15.5 and ignore a violation (#4445)
1 parent ffc6fd2 commit 2541547

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dependencies:
2626
# Dev dependencies (style checks)
2727
- codespell
2828
- prek
29-
- ruff>=0.12.0
29+
- ruff>=0.15.5
3030
# Dev dependencies (unit testing)
3131
- matplotlib-base
3232
- pytest>=6.0

pygmt/clib/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1918,7 +1918,7 @@ def virtualfile_in( # noqa: PLR0912
19181918
if hasattr(data, "items") and not hasattr(data, "to_frame"):
19191919
# Dictionary, pandas.DataFrame or xarray.Dataset types.
19201920
# pandas.Series will be handled below like a 1-D numpy.ndarray.
1921-
_data = [array for _, array in data.items()]
1921+
_data = [array for _, array in data.items()] # noqa: PERF102
19221922
else:
19231923
# Python list, tuple, numpy.ndarray, and pandas.Series types
19241924
_data = np.atleast_2d(np.asanyarray(data).T)

0 commit comments

Comments
 (0)