From 8303e09ef228928490aaf9176597b9816e6e8ccd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 18 Mar 2024 17:41:54 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- payments/stripe/forms.py | 5 +---- payments/stripe/providers.py | 4 +--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/payments/stripe/forms.py b/payments/stripe/forms.py index a4ef39d58..53a20d25e 100644 --- a/payments/stripe/forms.py +++ b/payments/stripe/forms.py @@ -51,10 +51,7 @@ def clean(self): "amount": int(self.payment.total * 100), "currency": self.payment.currency, "card": data["stripeToken"], - "description": "{} {}".format( - self.payment.billing_last_name, - self.payment.billing_first_name, - ), + "description": f"{self.payment.billing_last_name} {self.payment.billing_first_name}", "metadata": stripe_metadata, } diff --git a/payments/stripe/providers.py b/payments/stripe/providers.py index 5086b13c0..c377a4090 100644 --- a/payments/stripe/providers.py +++ b/payments/stripe/providers.py @@ -131,9 +131,7 @@ def create_session(self, payment): session_data.update( { "customer_data": { - "customer_name": "{} {}".format( - payment.billing_first_name, payment.billing_last_name - ) + "customer_name": f"{payment.billing_first_name} {payment.billing_last_name}" } } )