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

Use black to format code #146

Merged
merged 1 commit into from Feb 28, 2020
Merged

Conversation

drolando
Copy link
Contributor

Similar to what we're doing in other repos, let's use black to format the code to ensure a consistent style

@coveralls
Copy link

coveralls commented Feb 27, 2020

Coverage Status

Coverage remained the same at ?% when pulling c6c4379 on drolando:use_black_for_code_style into 86a2d7c on Yelp:master.

Copy link
Contributor

@bplotnick bplotnick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oooh. The dawn of a new age. Time to deprecate y/psg ?

I reviewed it mainly because I was interested in what it looks like. Just a few weird things, but by definition they are all nits 😸

py_zipkin/zipkin.py Outdated Show resolved Hide resolved
py_zipkin/zipkin.py Outdated Show resolved Hide resolved
tests/encoding/__init__test.py Outdated Show resolved Hide resolved
tests/encoding/_decoders_test.py Outdated Show resolved Hide resolved
tests/encoding/_decoders_test.py Outdated Show resolved Hide resolved
@@ -89,22 +86,18 @@ def _convert_from_thrift_endpoint(self, thrift_endpoint):
"""
ipv4 = None
ipv6 = None
port = struct.unpack('H', struct.pack('h', thrift_endpoint.port))[0]
port = struct.unpack("H", struct.pack("h", thrift_endpoint.port))[0]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this reminds me of eslint in reverse

Copy link

@jhereth jhereth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ship it!

.pre-commit-config.yaml Outdated Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
@drolando drolando merged commit 79175c0 into Yelp:master Feb 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants