File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -218,6 +218,13 @@ def pytest_addoption(parser: Parser) -> None:
218218 default = False ,
219219 help = "Don't ignore tests in a local virtualenv directory" ,
220220 )
221+ group .addoption (
222+ "--collect-in-build" ,
223+ action = "store_true" ,
224+ dest = "collect_in_build" ,
225+ default = False ,
226+ help = "Don't ignore builds in a local build/dist artifacts directory" ,
227+ )
221228 group .addoption (
222229 "--import-mode" ,
223230 default = "prepend" ,
@@ -466,7 +473,7 @@ def pytest_ignore_collect(collection_path: Path, config: Config) -> bool | None:
466473 if not allow_in_venv and _in_venv (collection_path ):
467474 return True
468475
469- allow_in_build = False # config.getoption("collect_in_build")
476+ allow_in_build = config .getoption ("collect_in_build" )
470477 if not allow_in_build and _in_build (collection_path ):
471478 return True
472479
You can’t perform that action at this time.
0 commit comments