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

No trailing spaces after params with no description #106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

S-Mann
Copy link

@S-Mann S-Mann commented Jul 15, 2021

I saw #43 and I can update the code to consider some flag as per your suggestion

Copy link

@a-t-0 a-t-0 left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution! I often run pre-commit twice when after running pyment to realise flake8 compliance. I appreciate how your work improves flake8 compliance. Would you be willing to write a test that shows the change you made?

Note I have no affiliations with pyment, I just like the software.

@@ -1990,7 +1992,8 @@ def _set_raw_params(self, sep):
)
if len(self.docs['out']['params']):
for p in self.docs['out']['params']:
raw += self.docs['out']['spaces'] + self.dst.get_key('param', 'out') + ' ' + p[0] + sep + with_space(p[1]).strip()
description = sep + with_space(p[1]).strip() if p[1] else ''
Copy link

Choose a reason for hiding this comment

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

It is not quite clear to me what this line does, would you, if you consider it appropriate, consider including a comment on what it does?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants