Move norecursedir
check to the pytest_ignore_collect
hook
#11081
Labels
topic: collection
related to the collection phase
type: proposal
proposal for a new feature, often to gather opinions or design the API around the new feature
Currently the two recursive collectors
Session
andPackage
perform thenorecursedir
check directly in the collector:pytest/src/_pytest/main.py
Lines 566 to 568 in 85c5bd2
pytest/src/_pytest/python.py
Lines 709 to 711 in 85c5bd2
I think it would be strictly better to move this check to
main
'spytest_ignore_collect
hookimpl:The text was updated successfully, but these errors were encountered: