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