Skip to content

Commit

Permalink
Bump to ruff 0.2.0 (#3031)
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman authored Feb 2, 2024
1 parent 198e278 commit 5098af0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies:
- pip
# Dev dependencies (style checks)
- codespell
- ruff>=0.1.9
- ruff>=0.2.0
# Dev dependencies (unit testing)
- matplotlib
- pytest-cov
Expand Down
2 changes: 1 addition & 1 deletion pygmt/clib/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def vectors_to_arrays(vectors):
arrays = []
for vector in vectors:
vec_dtype = str(getattr(vector, "dtype", ""))
array = np.asarray(a=vector, dtype=dtypes.get(vec_dtype, None))
array = np.asarray(a=vector, dtype=dtypes.get(vec_dtype))
arrays.append(as_c_contiguous(array))

return arrays
Expand Down
2 changes: 1 addition & 1 deletion pygmt/tests/test_clib_put_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def test_put_vector_invalid_dtype():
np.bytes_,
np.csingle,
np.cdouble,
np.clongfloat,
np.clongdouble,
np.half,
np.longdouble,
np.object_,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ ignore_missing_imports = true

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

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

0 comments on commit 5098af0

Please sign in to comment.