Skip to content

Doesn't pick up settings from pyproject.toml #9

@Paul-Durrant

Description

@Paul-Durrant

I'm finally moving to projects with pyproject.toml. And in there I have

[tool.pytest.ini_options]
doctest_optionflags = "NORMALIZE_WHITESPACE ELLIPSIS IGNORE_EXCEPTION_DETAIL"

but these are ignore by the command that doctestbtn uses:

python -m doctest -v

If it used

python -m pytest --doctest-modules

then (assuming the terminal in the project root), it would pick up the settings.

But some way for the doctestbtn to make sure the doc tests were run with the options specified in a pyproject.toml file would be great. Or even if it was possible to add then in an option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions