Skip to content

Commit

Permalink
Revert "Revert "Bump Black to latest version (#712)""
Browse files Browse the repository at this point in the history
This reverts commit b32a0ae.
  • Loading branch information
richardm-stripe committed Feb 20, 2021
1 parent b32a0ae commit 0a28c30
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
3 changes: 1 addition & 2 deletions stripe/api_resources/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ def detach(self, idempotency_key=None, **params):
)

def source_transactions(self, **params):
"""source_transactions is deprecated, use Source.list_source_transactions instead.
"""
"""source_transactions is deprecated, use Source.list_source_transactions instead."""
return self.request(
"get", self.instance_url() + "/source_transactions", params
)
3 changes: 1 addition & 2 deletions stripe/api_resources/subscription_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ class SubscriptionItem(
OBJECT_NAME = "subscription_item"

def usage_record_summaries(self, **params):
"""usage_record_summaries is deprecated, use SubscriptionItem.list_usage_record_summaries instead.
"""
"""usage_record_summaries is deprecated, use SubscriptionItem.list_usage_record_summaries instead."""
return self.request(
"get", self.instance_url() + "/usage_record_summaries", params
)
6 changes: 4 additions & 2 deletions stripe/oauth_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ def construct_error_object(self):
if self.json_body is None:
return None

return stripe.api_resources.error_object.OAuthErrorObject.construct_from(
self.json_body, stripe.api_key
return (
stripe.api_resources.error_object.OAuthErrorObject.construct_from(
self.json_body, stripe.api_key
)
)


Expand Down
6 changes: 4 additions & 2 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,10 @@ def do_GET(self):

self.setup_mock_server(MockServerRequestHandler)

stripe.default_http_client = stripe.http_client.new_default_http_client(
proxy="http://localhost:%s" % self.mock_server_port
stripe.default_http_client = (
stripe.http_client.new_default_http_client(
proxy="http://localhost:%s" % self.mock_server_port
)
)
stripe.Balance.retrieve()
assert MockServerRequestHandler.num_requests == 1
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ passenv = LDFLAGS CFLAGS
[testenv:fmt]
description = run code formatting using black
basepython = python3.9
deps = black==19.3b0
deps = black==20.8b1
commands = black . {posargs}
skip_install = true

Expand Down

0 comments on commit 0a28c30

Please sign in to comment.