Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix black formatting

Tomasz Szymański030defa61c89
diff --git a/saleor/graphql/account/mutations/account.py b/saleor/graphql/account/mutations/account.py
index 61846398ad..cd90792ce3 100644
--- a/saleor/graphql/account/mutations/account.py
+++ b/saleor/graphql/account/mutations/account.py
@@ -45,7 +45,7 @@ class AccountRegister(ModelMutation):
requires_confirmation = graphene.Boolean(
required=True,
- description="Informs whether users need to confirm their email address."
+ description="Informs whether users need to confirm their email address.",
)
class Meta:
@@ -81,9 +81,7 @@ class AccountRegister(ModelMutation):
if settings.ENABLE_ACCOUNT_CONFIRMATION_BY_EMAIL:
user.is_active = False
user.save()
- emails.send_account_confirmation_email(
- user, cleaned_input["redirect_url"]
- )
+ emails.send_account_confirmation_email(user, cleaned_input["redirect_url"])
else:
user.save()
account_events.customer_account_created_event(user=user)
diff --git a/saleor/payment/gateways/stripe/utils.py b/saleor/payment/gateways/stripe/utils.py
index e910452eba..e55c2f3278 100644
--- a/saleor/payment/gateways/stripe/utils.py
+++ b/saleor/payment/gateways/stripe/utils.py
@@ -80,7 +80,7 @@ def get_payment_billing_fullname(payment_information: PaymentData) -> str:
payment_billing = payment_information.billing
if not payment_billing:
return ""
- return "%s %s" % (payment_billing.last_name, payment_billing.first_name,)
+ return "%s %s" % (payment_billing.last_name, payment_billing.first_name)
def shipping_to_stripe_dict(shipping: AddressData) -> Dict:
diff --git a/tests/api/test_checkout.py b/tests/api/test_checkout.py
index bface0f5e6..69e0cf609c 100644
--- a/tests/api/test_checkout.py
+++ b/tests/api/test_checkout.py
@@ -1164,7 +1164,7 @@ def test_checkout_complete(
checkout.billing_address = address
checkout.store_meta(namespace="PUBLIC", client="PLUGIN", item={"accepted": "true"})
checkout.store_private_meta(
- namespace="PRIVATE", client="PLUGIN", item={"accepted": "true"},
+ namespace="PRIVATE", client="PLUGIN", item={"accepted": "true"}
)
checkout.save()