I tried to use the norecursedirs option inside setup.cfg to tell py.test not to collect tests from certain directories but it seems it does ignore it.
[tool:pyte
If you have several directories with different parents you can specify different --ignore parameters:
--ignore
py.test --ignore=somedir --ignore=otherdir --ignore=etcdir
new option: --ignore will prevent specified path from collection. Can be specified multiple times.