diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3d8ab35a8..b2702db2b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,12 +13,12 @@ repos: - id: check-added-large-files - id: debug-statements - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.2.1 + rev: v0.3.3 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] exclude: docs\/.* - repo: https://github.com/psf/black - rev: "24.1.1" + rev: "24.3.0" hooks: - id: black 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}" } } )