stianaske / pybotvac

Python module for interacting with Neato Botvac Connected vacuum robots.
MIT License
85 stars 44 forks source link

Use black #63

Closed Santobert closed 3 years ago

Santobert commented 3 years ago

While working on PR #59 I noticed that pybotvac doesn't have a consistent formatting scheme. This PR introduces Black, The Uncompromising Code Formatter. Even though we don't have a CI to enforce code formatting, we should make sure that every contribution uses appropriate formatting. This way, diffs become smaller and more readable, and merge conflicts are less likely to happen.

https://github.com/psf/black

Besides formatting and an addition to requirements.txt, this PR does not contain any changes to the code.

I am aware that formatting is always a matter of personal preferences. If this PR is not welcome, I will close it.