Skip to content

Commit

Permalink
style: format code with Autopep8, Black, ClangFormat, dotnet-format, …
Browse files Browse the repository at this point in the history
…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 f62245d 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
  • Loading branch information
deepsource-autofix[bot] authored May 10, 2024
1 parent f62245d commit 1910d99
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion banking/bank.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
from banking.accounts import BankAccount
from banking.transactions import transfer


def create_account(account_number):
"""
Creates a new bank account with the specified account number.
"""
return BankAccount(account_number)


def get_account(account_number):
"""
Retrieves the bank account with the specified account number.
Retrieves the bank account with the specified account number.
"""
# Load account data from database or other storage system
account_data = load_account_data(account_number)
Expand All @@ -22,13 +24,15 @@ def get_account(account_number):

return account


def save_account(account):
"""
Saves the specified bank account to the database or other storage system.
"""
# Save account data to database or other storage system
save_account_data(account.account_number, account.balance)


def process_transaction(transaction):
"""
Processes the specified transaction by transferring funds between bank accounts.
Expand Down

0 comments on commit 1910d99

Please sign in to comment.