From e7376d558e69ce929c2a4a28b063fae58d75d341 Mon Sep 17 00:00:00 2001 From: Jirka Borovec <6035284+Borda@users.noreply.github.com> Date: Wed, 20 May 2026 23:40:21 +0200 Subject: [PATCH] ci(tests): disable matplotlib GUI and exclude non-test dirs from collection (#2262) --- pyproject.toml | 1 + tests/conftest.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 6ae70d1e..23c36895 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -208,6 +208,7 @@ ini_options.addopts = [ "--color=yes", ] ini_options.doctest_optionflags = "ELLIPSIS NORMALIZE_WHITESPACE" +ini_options.norecursedirs = [ "examples", "docs", "notebooks", ".venv", ".git", "dist", "build" ] [tool.autoflake] check = true diff --git a/tests/conftest.py b/tests/conftest.py index 60273c78..40990c61 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,6 +1,9 @@ +import matplotlib import numpy as np import pytest +matplotlib.use("Agg") + import supervision as sv from tests.helpers import _create_key_points