diff options
author | Christian Cleberg <hello@cleberg.net> | 2025-04-05 13:36:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-05 13:36:49 -0500 |
commit | c8617ce8aecb40ccf1d13c02dcd7d7e74e79b56b (patch) | |
tree | cf901030197768b2aa21d2d3fcf0426948a94111 /yoshi/account.py | |
parent | 1fc982100a13de26bfca3419d1a6c5a65acad3d2 (diff) | |
download | yoshi-cli-c8617ce8aecb40ccf1d13c02dcd7d7e74e79b56b.tar.gz yoshi-cli-c8617ce8aecb40ccf1d13c02dcd7d7e74e79b56b.tar.bz2 yoshi-cli-c8617ce8aecb40ccf1d13c02dcd7d7e74e79b56b.zip |
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>
Diffstat (limited to 'yoshi/account.py')
-rw-r--r-- | yoshi/account.py | 24 |
1 files changed, 15 insertions, 9 deletions
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. |