From 1efd816faf665341b7133d40a3910fb70f93dcc0 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 2 Jun 2024 08:35:16 +0000 Subject: [PATCH] style: format code with Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf This commit fixes the style issues introduced in 069b121 according to the output from Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf. Details: None --- .../pi_network/payment_gateways/ocbc.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/blockchain_integration/pi_network/payment_gateways/ocbc.py b/blockchain_integration/pi_network/payment_gateways/ocbc.py index 68cc2e48a..4e65d3056 100644 --- a/blockchain_integration/pi_network/payment_gateways/ocbc.py +++ b/blockchain_integration/pi_network/payment_gateways/ocbc.py @@ -1,6 +1,7 @@ # payment_gateways/ocbc.py import requests + class OCBCPaymentGateway: def __init__(self, api_key, api_secret): self.api_key = api_key @@ -10,13 +11,12 @@ def __init__(self, api_key, api_secret): def make_payment(self, amount, recipient_account_number): headers = { "Authorization": f"Bearer {self.api_key}", - "Content-Type": "application/json" - } - data = { - "amount": amount, - "recipient_account_number": recipient_account_number + "Content-Type": "application/json", } - response = requests.post(f"{self.base_url}/payments", headers=headers, json=data) + data = {"amount": amount, "recipient_account_number": recipient_account_number} + response = requests.post( + f"{self.base_url}/payments", headers=headers, json=data + ) if response.status_code == 200: return response.json() else: