Skip to content

Commit 5098af0

Browse files
authored
Bump to ruff 0.2.0 (#3031)
1 parent 198e278 commit 5098af0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dependencies:
2424
- pip
2525
# Dev dependencies (style checks)
2626
- codespell
27-
- ruff>=0.1.9
27+
- ruff>=0.2.0
2828
# Dev dependencies (unit testing)
2929
- matplotlib
3030
- pytest-cov

pygmt/clib/conversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def vectors_to_arrays(vectors):
194194
arrays = []
195195
for vector in vectors:
196196
vec_dtype = str(getattr(vector, "dtype", ""))
197-
array = np.asarray(a=vector, dtype=dtypes.get(vec_dtype, None))
197+
array = np.asarray(a=vector, dtype=dtypes.get(vec_dtype))
198198
arrays.append(as_c_contiguous(array))
199199

200200
return arrays

pygmt/tests/test_clib_put_vector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def test_put_vector_invalid_dtype():
208208
np.bytes_,
209209
np.csingle,
210210
np.cdouble,
211-
np.clongfloat,
211+
np.clongdouble,
212212
np.half,
213213
np.longdouble,
214214
np.object_,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ ignore_missing_imports = true
7777

7878
[tool.ruff]
7979
line-length = 88 # E501 (line-too-long)
80-
show-source = true
80+
output-format = "full"
8181

8282
[tool.ruff.format]
8383
line-ending = "lf" # Use UNIX `\n` line endings for all files

0 commit comments

Comments
 (0)