Skip to content

Commit

Permalink
💬 Update ruff setting
Browse files Browse the repository at this point in the history
  • Loading branch information
arafune committed Feb 26, 2024
1 parent 37fe0b2 commit 5b3710c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ convention = "google"
"merlin.py" = ["ALL"]
"nexus_utils.py" = ["ALL"]
"fits_utils.py" = ["ALL"]
"tests/*" = ["PLR2004", "ERA001"]


[tool.mypy]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_xarray_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def test_property_sample_angles(self, dataarray_cut: xr.Dataset) -> None:
"""Test for sample_angles."""
assert dataarray_cut.S.sample_angles[0] == 0
assert dataarray_cut.S.sample_angles[1] == 0
assert dataarray_cut.S.sample_angles[2] == -0.10909301748228785 # noqa: PLR2004
assert dataarray_cut.S.sample_angles[2] == -0.10909301748228785
np.testing.assert_almost_equal(
dataarray_cut.S.sample_angles[3][0:3].values,
np.array([0.2216568, 0.2234021, 0.2251475]),
Expand Down

0 comments on commit 5b3710c

Please sign in to comment.