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

Bump Black to latest version #712

Merged
merged 1 commit into from
Feb 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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