feat(ruff): add pytest linting rule (#2053)

* feat(ruff): add pytest linting rule
* --unsafe-fixes
* fix(pre_commit): 🎨 auto format pre-commit hooks


---------

Co-authored-by: jiri BOROVEC <jirka@Jiris-MacBook-Pro-J4N257Y6Q2.local>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
Jirka Borovec
2026-01-13 19:34:22 +01:00
committed by GitHub
co-authored by jiri BOROVEC pre-commit-ci[bot] Copilot Copilot
parent f1e0c9cdd7
commit 09de0f4f06
35 changed files with 195 additions and 166 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ from test.test_utils import mock_detections
@pytest.mark.parametrize(
"detections, detection_idx, color_lookup, expected_result, exception",
("detections", "detection_idx", "color_lookup", "expected_result", "exception"),
[
(
mock_detections(
@@ -111,7 +111,7 @@ def test_resolve_color_idx(
@pytest.mark.parametrize(
"text, max_line_length, expected_result, exception",
("text", "max_line_length", "expected_result", "exception"),
[
(None, None, [""], DoesNotRaise()), # text is None
("", None, [""], DoesNotRaise()), # empty string