From b31b529d070e6deef509c7f6043e3245b4fa4fed Mon Sep 17 00:00:00 2001 From: "Adam R. Jensen" <39184289+AdamRJensen@users.noreply.github.com> Date: Mon, 30 Mar 2026 16:47:37 +0200 Subject: [PATCH 1/2] Set matplotlib backend to agg for non-gui testing --- tests/conftest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index cbf876c..9d9de5a 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,3 +1,7 @@ +# Avoid tkinter error for non-GUI uses +import matplotlib +matplotlib.use("Agg") + import pytest from shapely import geometry import numpy as np From 3a94e8b35f4b61b2d0c6b7a06ea15cea25a785eb Mon Sep 17 00:00:00 2001 From: "Adam R. Jensen" <39184289+AdamRJensen@users.noreply.github.com> Date: Mon, 30 Mar 2026 16:50:45 +0200 Subject: [PATCH 2/2] Fix linter --- tests/conftest.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 9d9de5a..0c62334 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -2,10 +2,10 @@ import matplotlib matplotlib.use("Agg") -import pytest -from shapely import geometry -import numpy as np -from twoaxistracking import layout +import pytest # noqa: E402 +from shapely import geometry # noqa: E402 +import numpy as np # noqa: E402 +from twoaxistracking import layout # noqa: E402 @pytest.fixture