Skip to content

Add docformatter to pre-commit hooks - #914

Merged
rytilahti merged 4 commits into
masterfrom
janitor/docformatter
Jan 20, 2021
Merged

Add docformatter to pre-commit hooks#914
rytilahti merged 4 commits into
masterfrom
janitor/docformatter

Conversation

@rytilahti

Copy link
Copy Markdown
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
Comment thread miio/airconditioningcompanion.py Outdated
@rytilahti rytilahti mentioned this pull request Jan 20, 2021
4 tasks
Comment thread miio/airconditioningcompanionMCN.py Outdated
@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