(config: pytest.Config)
| 81 | |
| 82 | |
| 83 | def pytest_configure(config: pytest.Config): |
| 84 | plugin_base.read_config(config.rootpath) |
| 85 | if plugin_base.exclude_tags or plugin_base.include_tags: |
| 86 | new_expr = class="st">" and ".join( |
| 87 | list(plugin_base.include_tags) |
| 88 | + [fclass="st">"not {tag}" for tag in plugin_base.exclude_tags] |
| 89 | ) |
| 90 | |
| 91 | if config.option.markexpr: |
| 92 | config.option.markexpr += fclass="st">" and {new_expr}" |
| 93 | else: |
| 94 | config.option.markexpr = new_expr |
| 95 | |
| 96 | if config.pluginmanager.hasplugin(class="st">"xdist"): |
| 97 | config.pluginmanager.register(XDistHooks()) |
| 98 | |
| 99 | if hasattr(config, class="st">"workerinput"): |
| 100 | plugin_base.restore_important_follower_config(config.workerinput) |
| 101 | plugin_base.configure_follower(config.workerinput[class="st">"follower_ident"]) |
| 102 | else: |
| 103 | if config.option.write_idents and os.path.exists( |
| 104 | config.option.write_idents |
| 105 | ): |
| 106 | os.remove(config.option.write_idents) |
| 107 | |
| 108 | plugin_base.pre_begin(config.option) |
| 109 | |
| 110 | plugin_base.set_coverage_flag( |
| 111 | bool(getattr(config.option, class="st">"cov_source", False)) |
| 112 | ) |
| 113 | |
| 114 | plugin_base.set_fixture_functions(PytestFixtureFunctions) |
| 115 | |
| 116 | if config.option.dump_pyannotate: |
| 117 | global DUMP_PYANNOTATE |
| 118 | DUMP_PYANNOTATE = True |
| 119 | |
| 120 | |
| 121 | DUMP_PYANNOTATE = False |
nothing calls this directly
no test coverage detected