Skip to content

How to limit line-length when creating outputs for doctest using --doctest-plus-generate-diff=overwriteΒ #287

@d-chris

Description

@d-chris

Question

is it possible to limit the line-length of the output created, using --doctest-plus-generate-diff=overwrite

ruff complains about the total length and i didn't find a settings to wave E501 for doctest outputs.

python-validators/validators#417 (comment)

Solutions

  • automatically let doctest-plus add an optional noqa: E501
  • format the output in a way, linter does not complain

how do you guys handle this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions