From 7b209be1d866a4e722d331724659f4e7972ebc5f Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Fri, 21 Feb 2025 12:37:29 -0800 Subject: [PATCH] Remove ruff ignore E501, add dummy test case. --- pyproject.toml | 1 - tests/test_buffers.py | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 13dd04a518..07e8edabb6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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()) ] diff --git a/tests/test_buffers.py b/tests/test_buffers.py index 2612edb270..a8151750e3 100644 --- a/tests/test_buffers.py +++ b/tests/test_buffers.py @@ -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