You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MAINT make pytest collection ignore folders with Python scripts (#12011)
Some IDEs such as VS Code use the pytest command to collect all the tests of
the workspace in the background. This can cause unexpected execution of
arbitrary Python scripts in the workspace (examples, benchmarks...).
The doc folder is also ignored because it has python scripts for sphinx
along with copies of the examples.
To safely run pytest in the doc folder, we need to used the find command
to find all "*.rst" files as done in the project Makefile.
0 commit comments