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 @@ -211,6 +211,13 @@ def pytest_addoption(parser: Parser) -> None:
211211 default = False ,
212212 help = "Don't ignore tests in a local virtualenv directory" ,
213213 )
214+ group .addoption (
215+ "--collect-in-build" ,
216+ action = "store_true" ,
217+ dest = "collect_in_build" ,
218+ default = False ,
219+ help = "Don't ignore builds in a local build/dist artifacts directory" ,
220+ )
214221 group .addoption (
215222 "--import-mode" ,
216223 default = "prepend" ,
@@ -460,7 +467,7 @@ def pytest_ignore_collect(collection_path: Path, config: Config) -> bool | None:
460467 if not allow_in_venv and _in_venv (collection_path ):
461468 return True
462469
463- allow_in_build = False # config.getoption("collect_in_build")
470+ allow_in_build = config .getoption ("collect_in_build" )
464471 if not allow_in_build and _in_build (collection_path ):
465472 return True
466473
You can’t perform that action at this time.
0 commit comments