From c8617ce8aecb40ccf1d13c02dcd7d7e74e79b56b Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Sat, 5 Apr 2025 13:36:49 -0500 Subject: migrate from pylint to ruff-action (#4) * migrate from pylint to ruff-action * temporarily disable push param * Commit from GitHub Actions (Pylint) * re-enable push param --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> --- yoshi/account.py | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'yoshi/account.py') diff --git a/yoshi/account.py b/yoshi/account.py index fb42008..e92c304 100644 --- a/yoshi/account.py +++ b/yoshi/account.py @@ -11,9 +11,14 @@ from yoshi import database class Account: """Represents a login account.""" - def __init__(self, uuid: str, application: str, #pylint: disable=R0913,R0917 - username: str, #pylint: disable=R0913,R0917 - password: str, url: str) -> None: #pylint: disable=R0913,R0917 + def __init__( + self, + uuid: str, + application: str, # pylint: disable=R0913,R0917 + username: str, # pylint: disable=R0913,R0917 + password: str, + url: str, + ) -> None: # pylint: disable=R0913,R0917 self.uuid = uuid self.application = application self.username = username @@ -22,16 +27,17 @@ class Account: def display_account(self) -> None: """Print the account details.""" - print('ID:', self.uuid) - print('Application:', self.application) - print('Username:', self.username) - print('Password:', self.password) - print('URL:', self.url) + print("ID:", self.uuid) + print("Application:", self.application) + print("Username:", self.username) + print("Password:", self.password) + print("URL:", self.url) def save_account(self) -> None: """Save the account details to the database.""" database.add_account( - self.uuid, self.application, self.username, self.password, self.url) + self.uuid, self.application, self.username, self.password, self.url + ) def delete_account(self) -> bool: """Delete the account from the database. -- cgit v1.2.3-70-g09d2