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

Add docformatter to pre-commit hooks #914

Merged
merged 4 commits into from
Jan 20, 2021
Merged

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.

2 participants