Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rytilahti
Copy link
Owner

Docformatter is something like black but for docstring formatting: https://github.com/myint/docformatter

This PR adds it to the pre-commit hooks, and mass-converts the whole code base using it. If there are some cases where the docstring summary should include some text (e.g., for click), these needs to be modified manually.

@rytilahti rytilahti requested a review from syssi January 20, 2021 17:30
@rytilahti rytilahti mentioned this pull request Jan 20, 2021
4 tasks
@rytilahti rytilahti merged commit 5730f53 into master Jan 20, 2021
@rytilahti rytilahti deleted the janitor/docformatter branch January 20, 2021 21:08
@rytilahti rytilahti mentioned this pull request Mar 13, 2021
xvlady pushed a commit to xvlady/python-miio that referenced this pull request May 9, 2021
* Add docformatter to pre-commit hooks

* Add version pinning for docformatter

* Update poetry.lock

* Improve docstring formatting for some cases where docformatter didn't do a nice job
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