@@ -214,7 +214,12 @@ def check(pytest: tuple[PytestFile, dict[str, Any]]) -> bool:
214214 support native configuration and toml config files).
215215
216216 ```toml
217+ # Old pytest
217218 [tool.pytest.ini_options]
219+ minversion = "6"
220+
221+ # pytest 9
222+ [tool.pytest]
218223 minversion = "9"
219224 ```
220225 """
@@ -238,8 +243,13 @@ def check(pytest: tuple[PytestFile, dict[str, Any]]) -> bool:
238243 The `testpaths` setting should be set to a reasonable default.
239244
240245 ```toml
246+ # Old pytest
241247 [tool.pytest.ini_options]
242248 testpaths = ["tests"]
249+
250+ # pytest 9+
251+ [tool.pytest]
252+ testpaths = ["tests"]
243253 ```
244254 """
245255 _ , options = pytest
@@ -259,8 +269,13 @@ def check(pytest: tuple[PytestFile, dict[str, Any]]) -> bool:
259269 failures.
260270
261271 ```toml
272+ # Old pytest
262273 [tool.pytest.ini_options]
263274 log_level = "INFO"
275+
276+ # pytest 9+
277+ [tool.pytest]
278+ log_level = "INFO"
264279 ```
265280 """
266281 _ , options = pytest
@@ -283,6 +298,9 @@ def check(pytest: tuple[PytestFile, dict[str, Any]]) -> bool:
283298 ```toml
284299 [tool.pytest.ini_options]
285300 xfail_strict = true
301+
302+ [tool.pytest]
303+ strict = true
286304 ```
287305 """
288306 _ , options = pytest
@@ -307,8 +325,13 @@ def check(pytest: tuple[PytestFile, dict[str, Any]]) -> bool:
307325 config setting is misspelled.
308326
309327 ```toml
328+ # Old pytest
310329 [tool.pytest.ini_options]
311330 addopts = ["-ra", "--strict-config", "--strict-markers"]
331+
332+ # pytest 9+
333+ [tool.pytest]
334+ strict = true
312335 ```
313336 """
314337 _ , options = pytest
@@ -333,8 +356,13 @@ def check(pytest: tuple[PytestFile, dict[str, Any]]) -> bool:
333356 be specified in config, avoiding misspellings.
334357
335358 ```toml
359+ # Old pytest
336360 [tool.pytest.ini_options]
337361 addopts = ["-ra", "--strict-config", "--strict-markers"]
362+
363+ # pytest 9+
364+ [tool.pytest]
365+ strict = true
338366 ```
339367 """
340368 _ , options = pytest
@@ -358,8 +386,13 @@ def check(pytest: tuple[PytestFile, dict[str, Any]]) -> bool:
358386 (print summary of all fails/errors).
359387
360388 ```toml
389+ # Old pytest
361390 [tool.pytest.ini_options]
362391 addopts = ["-ra", "--strict-config", "--strict-markers"]
392+
393+ # pytest 9+
394+ [tool.pytest]
395+ addopts = ["-ra"]
363396 ```
364397 """
365398 loc , options = pytest
@@ -382,8 +415,13 @@ def check(pytest: tuple[PytestFile, dict[str, Any]]) -> bool:
382415 will hide important warnings otherwise, like deprecations.
383416
384417 ```toml
418+ # Old pytest
385419 [tool.pytest.ini_options]
386420 filterwarnings = ["error"]
421+
422+ # pytest 9+
423+ [tool.pytest]
424+ filterwarnings = ["error"]
387425 ```
388426 """
389427 _ , options = pytest
0 commit comments