Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and WhyNotHugo committed Jan 31, 2024
1 parent c9134a7 commit 84b52c9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
6 changes: 3 additions & 3 deletions payments/dotpay/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ def get_hidden_fields(self, payment):
"currency": payment.currency,
"description": payment.description,
"lang": self.lang,
"ignore_last_payment_channel": "1"
if self.ignore_last_payment_channel
else "0",
"ignore_last_payment_channel": (
"1" if self.ignore_last_payment_channel else "0"
),
"ch_lock": "1" if self.lock else "0",
"URL": payment.get_success_url(),
"URLC": self.get_return_url(payment),
Expand Down
8 changes: 5 additions & 3 deletions payments/sofort/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ def get_form(self, payment, data=None):
"interface_version": "django-payments",
"amount": payment.total,
"currency": payment.currency,
"description": payment.description
if len(payment.description) <= 40
else (payment.description[:37] + "..."),
"description": (
payment.description
if len(payment.description) <= 40
else (payment.description[:37] + "...")
),
"success_url": self.get_return_url(payment),
"abort_url": self.get_return_url(payment),
"customer_protection": "0",
Expand Down
1 change: 1 addition & 0 deletions payments/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This module is responsible for automatic processing of provider callback
data (asynchronous transaction updates).
"""

from __future__ import annotations

from django.db.transaction import atomic
Expand Down
1 change: 1 addition & 0 deletions testapp/testapp/asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""

from __future__ import annotations

import os
Expand Down
1 change: 1 addition & 0 deletions testapp/testapp/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""

from __future__ import annotations

import os
Expand Down

0 comments on commit 84b52c9

Please sign in to comment.