(config: Config)
| 129 | |
| 130 | @hookimpl(tryfirst=True) |
| 131 | def pytest_cmdline_main(config: Config) -> int | ExitCode | None: |
| 132 | import _pytest.config |
| 133 | |
| 134 | if config.option.markers: |
| 135 | config._do_configure() |
| 136 | tw = _pytest.config.create_terminal_writer(config) |
| 137 | for line in config.getini("markers"): |
| 138 | parts = line.split(":", 1) |
| 139 | name = parts[0] |
| 140 | rest = parts[1] if len(parts) == 2 else "" |
| 141 | tw.write(f"@pytest.mark.{name}:", bold=True) |
| 142 | tw.line(rest) |
| 143 | tw.line() |
| 144 | config._ensure_unconfigure() |
| 145 | return 0 |
| 146 | |
| 147 | return None |
| 148 | |
| 149 | |
| 150 | @dataclasses.dataclass |
nothing calls this directly
no test coverage detected