ignore doctests within _streamlit
@@ -96,5 +96,8 @@ def pytest_ignore_collect(path, config): # pylint: disable = unused-argument
or "node_modules" in relative_path_list
or "site-packages" in relative_path_list
or ("_bundle" in relative_path_list and "python" in relative_path_list)
- or (config.getoption("--doctest-modules") and ("tests" in relative_path_list))
+ or (
+ config.getoption("--doctest-modules")
+ and ("_streamlit" in relative_path_list or "tests" in relative_path_list)
+ )
)
