Skip to content

pytest ini_options schema marked as deprecated for pytest < 9.0 #5278

@cas--

Description

@cas--

Area with issue?

Recent updates to the schema is causing tombi to flag pytest ini_config in pyproject.toml as deprecated when it's still a valid way to config pytest.

https://www.schemastore.org/partial-pytest.json

✔️ Expected Behavior

In pyproject.toml

[tool.pytest.ini_options] is not marked as deprecated

❌ Actual Behavior

When [tool.pytest.ini_options] is configured tombi flags it as deprecated but pytest has not deprecated this usage so this is false warning forcing users to migrate config which would not be possible if using pytest version <9.

Also why is pytest-asyncio mentioned in the description?

`tool.pytest.ini_options` is deprecatedTombi(deprecated)
Configuration options for pytest-asyncio.
Keys: tool.pytest.ini_options
Value: Table
Additional Keys: true
Keys Order: schema

JSON, YAML, or TOML file that does not work.

[tool.pytest.ini_options]
pythonpath = "src/python"
testpaths = ["src/python/tests"]

IDE or code editor.

None

Are you making a PR for this?

No, someone else must create the PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedissue:bugReport errors or unexpected behavior (auto-generated by issue forms)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions