From 78f1b10087489d4b5f5effafadedafd5fbfe4659 Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Mon, 23 Feb 2026 19:33:08 +0100 Subject: [PATCH] Remove redundant `conftest.py` to fix compatibility with pytest 9 `pytest_ignore_collect` takes only `collection_path` starting with pytest 9. Most of the paths referenced in `plotly/conftest.py` don't exist anymore and wouldn't be collected anyway, so we can just remove the file. https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path --- plotly/conftest.py | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 plotly/conftest.py diff --git a/plotly/conftest.py b/plotly/conftest.py deleted file mode 100644 index 1e1361dd518..00000000000 --- a/plotly/conftest.py +++ /dev/null @@ -1,24 +0,0 @@ -import os - - -def pytest_ignore_collect(path): - # Ignored files, most of them are raising a chart studio error - ignored_paths = [ - "exploding_module.py", - "chunked_requests.py", - "v2.py", - "v1.py", - "presentation_objs.py", - "widgets.py", - "dashboard_objs.py", - "grid_objs.py", - "config.py", - "presentation_objs.py", - "session.py", - ] - if ( - os.path.basename(str(path)) in ignored_paths - or "plotly/plotly/plotly/__init__.py" in str(path) - or "plotly/api/utils.py" in str(path) - ): - return True