Skip to content

Commit

Permalink
Remove ruff ignore E501, add dummy test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwgk committed Feb 21, 2025
1 parent d8565ac commit 7b209be
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ extend-select = [
]
ignore = [
"PLR", # Design related pylint
"E501", # Line too long (Black is enough)
"PT011", # Too broad with raises in pytest
"SIM118", # iter(x) is not always the same as iter(x.keys())
]
Expand Down
9 changes: 9 additions & 0 deletions tests/test_buffers.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,3 +399,12 @@ def check_strides(mat):
m.get_py_buffer(dmat, m.PyBUF_ANY_CONTIGUOUS)
with pytest.raises(expected_exception):
m.get_py_buffer(dmat, m.PyBUF_F_CONTIGUOUS)


_SOME_DICT = {
0: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
}


def test_some_dict():
assert _SOME_DICT

0 comments on commit 7b209be

Please sign in to comment.