python-zk / kazoo

Kazoo is a high-level Python library that makes it easier to use Apache Zookeeper.
https://kazoo.readthedocs.io
Apache License 2.0
1.3k stars 386 forks source link

chore(core): Introduce black code formatter #673

Closed ceache closed 1 year ago

ceache commented 1 year ago

Use black to format the code

Why is this needed?

Remove friction during development caused by styling differences. Minimize diffs.

Proposed Changes

Does this PR introduce any breaking change?

No

codecov-commenter commented 1 year ago

Codecov Report

Base: 94.39% // Head: 94.40% // Increases project coverage by +0.01% :tada:

Coverage data is based on head (644eeb7) compared to base (cb2fe85). Patch coverage: 89.36% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #673 +/- ## ========================================== + Coverage 94.39% 94.40% +0.01% ========================================== Files 57 57 Lines 8399 8399 ========================================== + Hits 7928 7929 +1 + Misses 471 470 -1 ``` | [Impacted Files](https://codecov.io/gh/python-zk/kazoo/pull/673?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-zk) | Coverage Δ | | |---|---|---| | [kazoo/python2atexit.py](https://codecov.io/gh/python-zk/kazoo/pull/673/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-zk#diff-a2F6b28vcHl0aG9uMmF0ZXhpdC5weQ==) | `40.62% <0.00%> (ø)` | | | [kazoo/recipe/election.py](https://codecov.io/gh/python-zk/kazoo/pull/673/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-zk#diff-a2F6b28vcmVjaXBlL2VsZWN0aW9uLnB5) | `100.00% <ø> (ø)` | | | [kazoo/tests/conftest.py](https://codecov.io/gh/python-zk/kazoo/pull/673/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-zk#diff-a2F6b28vdGVzdHMvY29uZnRlc3QucHk=) | `42.85% <0.00%> (ø)` | | | [kazoo/tests/test\_eventlet\_handler.py](https://codecov.io/gh/python-zk/kazoo/pull/673/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-zk#diff-a2F6b28vdGVzdHMvdGVzdF9ldmVudGxldF9oYW5kbGVyLnB5) | `88.52% <0.00%> (-1.64%)` | :arrow_down: | | [kazoo/tests/test\_gevent\_handler.py](https://codecov.io/gh/python-zk/kazoo/pull/673/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-zk#diff-a2F6b28vdGVzdHMvdGVzdF9nZXZlbnRfaGFuZGxlci5weQ==) | `80.28% <0.00%> (ø)` | | | [kazoo/tests/test\_cache.py](https://codecov.io/gh/python-zk/kazoo/pull/673/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-zk#diff-a2F6b28vdGVzdHMvdGVzdF9jYWNoZS5weQ==) | `57.48% <26.38%> (ø)` | | | [kazoo/tests/test\_election.py](https://codecov.io/gh/python-zk/kazoo/pull/673/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-zk#diff-a2F6b28vdGVzdHMvdGVzdF9lbGVjdGlvbi5weQ==) | `91.30% <50.00%> (ø)` | | | [kazoo/tests/test\_build.py](https://codecov.io/gh/python-zk/kazoo/pull/673/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-zk#diff-a2F6b28vdGVzdHMvdGVzdF9idWlsZC5weQ==) | `87.50% <66.66%> (ø)` | | | [kazoo/testing/common.py](https://codecov.io/gh/python-zk/kazoo/pull/673/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-zk#diff-a2F6b28vdGVzdGluZy9jb21tb24ucHk=) | `78.78% <72.41%> (ø)` | | | [kazoo/tests/util.py](https://codecov.io/gh/python-zk/kazoo/pull/673/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-zk#diff-a2F6b28vdGVzdHMvdXRpbC5weQ==) | `62.50% <75.00%> (-1.39%)` | :arrow_down: | | ... and [57 more](https://codecov.io/gh/python-zk/kazoo/pull/673/diff?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-zk) | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-zk). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-zk)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

ceache commented 1 year ago

@StephenSorriaux rebased and ready for review