Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable doc8 and improve display of supported env vars #3298

Merged
merged 2 commits into from
Nov 10, 2021

Conversation

ssbarnea
Copy link
Member

@ssbarnea ssbarnea commented Nov 10, 2021

  • add doc8 linter
  • fixes newlines in rst
  • converts table to definition list to make it easier to read on
    narrow screens and also easier to maintain.

MOLECULE_VERIFIER_NAME Name of the verifier tool (usually 'ansible')
MOLECULE_VERIFIER_TEST_DIRECTORY ?
================================ ===========================================================
MOLECULE_DEBUG
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why reformat it like this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC, rST docs suggest using definition lists for documenting variables. So this change does make sense. @ssbarnea Did doc8 suggest that change?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really but when I reached the very long lines of that table, I found myself forced to fix that table bug.

doc8 is not as smart to do that.

- add doc8 linter
- fixes newlines in rst
- converts table to definition list to make it easier to read on
  narrow screens and also easier to maintain.
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>

[doc8]
# see https://github.com/PyCQA/doc8/issues/75
ignore-path = .eggs,.tox,constraints.txt,build,molecule.egg-info,src/molecule.egg-info
Copy link
Member

@webknjaz webknjaz Nov 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. I'd multiline this
  2. Isn't there a better config than package metadata?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No multiline support, probably my comment should give you a hint that there is no much better place. FYI, flake is still inside setup.cfg for the same reasons.

@ssbarnea ssbarnea merged commit 11ff51e into ansible:main Nov 10, 2021
@ssbarnea ssbarnea deleted the fix/doc8 branch November 10, 2021 17:10
@ssbarnea ssbarnea changed the title Enable doc8 Enable doc8 and improve display of supported env vars Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants