Skip to content

can put NORMALIZE_WHITESPACE in pytest config #13564

Closed

Description

@amueller

Ever since we moved to pytest, we can remove the NORMALIZE_WHITESPACE from our docs and just put the option into setup.cfg:

doctest_optionflags= NORMALIZE_WHITESPACE

That should make the docs nicer and cleaner!
We might also want to do ellipsis.

Activity

  1. added
    Easy
    on Apr 2, 2019
  2. amueller commented on Apr 2, 2019

    @amueller
    MemberAuthor

    we could also change setup.cfg so that pytest doc runs the doctests in a meaningful way. That mostly requires ignoring the subdirectories that should be ignored and adding --doctest-glob '*.rst' to the addopts.

  3. rth commented on Apr 5, 2019

    @rth
    Member

    we can remove the NORMALIZE_WHITESPACE from our docs and just put the option into setup.cfg

    +1 though it would only work if tests are run from the project root directory I think.

    we could also change setup.cfg so that pytest doc runs the doctests in a meaningful way.

    Reviving #9839 might be an option, where some of this was done (it's more complicated that just --doctest-glob '*.rst')

  4. jnothman commented on Apr 6, 2019

    @jnothman
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Easyhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions