(self, config: Config)
| 391 | """Plugin which implements the --nf (run new-first) option.""" |
| 392 | |
| 393 | def __init__(self, config: Config) -> None: |
| 394 | self.config = config |
| 395 | self.active = config.option.newfirst |
| 396 | assert config.cache is not None |
| 397 | self.cached_nodeids = set(config.cache.get("cache/nodeids", [])) |
| 398 | |
| 399 | @hookimpl(hookwrapper=True, tryfirst=True) |
| 400 | def pytest_collection_modifyitems( |