8000 Enable doc8 and improve display of supported env vars by ssbarnea · Pull Request #3298 · ansible/molecule · GitHub
[go: up one dir, main page]

Skip to content

Enable doc8 and improve display of supported env vars - #3298

Merged
ssbarnea merged 2 commits into
ansible:mainfrom
ssbarnea:fix/doc8
Nov 10, 2021
Merged

ssbarnea merged 2 commits into
ansible:mainfrom
ssbarnea:fix/doc8

Conversation

@ssbarnea
@ssbarnea ssbarnea commented Nov 10, 2021 •
Copy link
Copy Markdown
Member
  • 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.

Comment thread docs/ci.rst Resolved
Comment thread docs/configuration.rst
MOLECULE_VERIFIER_NAME Name of the verifier tool (usually 'ansible')
MOLECULE_VERIFIER_TEST_DIRECTORY ?
================================ ===========================================================
MOLECULE_DEBUG
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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>
Comment thread setup.cfg

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

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
Copy Markdown
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.

3 participants

0