From baa291f289bb32cf3ab2f0d020bddd49e552198e Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 30 Aug 2025 20:15:03 -0500 Subject: [PATCH] fix: fix 'line-too-long' for pylint --- .pylintrc | 1 + src/wuttjamaican/cli/problems.py | 3 ++- src/wuttjamaican/db/model/auth.py | 10 +++++++--- src/wuttjamaican/install.py | 6 ++++-- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.pylintrc b/.pylintrc index 1290b8b..642d985 100644 --- a/.pylintrc +++ b/.pylintrc @@ -17,6 +17,7 @@ enable=anomalous-backslash-in-string, empty-docstring, inconsistent-return-statements, invalid-name, + line-too-long, no-else-return, redefined-argument-from-local, too-few-public-methods, diff --git a/src/wuttjamaican/cli/problems.py b/src/wuttjamaican/cli/problems.py index 4135065..226b0fc 100644 --- a/src/wuttjamaican/cli/problems.py +++ b/src/wuttjamaican/cli/problems.py @@ -53,7 +53,8 @@ def problems( list_checks: Annotated[ bool, typer.Option('--list', '-l', - help="List available problem checks; optionally filtered per --system and --problem")] = False, + help="List available problem checks; optionally filtered " + "per --system and --problem")] = False, ): """ Find and report on problems with the data or system. diff --git a/src/wuttjamaican/db/model/auth.py b/src/wuttjamaican/db/model/auth.py index 5ba7bfe..8ff9fc5 100644 --- a/src/wuttjamaican/db/model/auth.py +++ b/src/wuttjamaican/db/model/auth.py @@ -286,9 +286,13 @@ class UserAPIToken(Base): # pylint: disable=too-few-public-methods Raw token string, to be used by API clients. """) - created = sa.Column(sa.DateTime(timezone=True), nullable=False, default=datetime.datetime.now, doc=""" - Date/time when the token was created. - """) + created = sa.Column( + sa.DateTime(timezone=True), + nullable=False, + default=datetime.datetime.now, + doc=""" + Date/time when the token was created. + """) def __str__(self): return self.description or "" diff --git a/src/wuttjamaican/install.py b/src/wuttjamaican/install.py index 5ac007e..0806b76 100644 --- a/src/wuttjamaican/install.py +++ b/src/wuttjamaican/install.py @@ -143,7 +143,8 @@ class InstallHandler(GenericHandler): """ self.rprint(f"\n\t[blue]Welcome to {self.app.get_title()}![/blue]") self.rprint("\n\tThis tool will install and configure the app.") - self.rprint("\n\t[italic]NB. You should already have created the database in PostgreSQL or MySQL.[/italic]") + self.rprint("\n\t[italic]NB. You should already have created " + "the database in PostgreSQL or MySQL.[/italic]") # shall we continue? if not self.prompt_bool("continue?", True): @@ -446,7 +447,8 @@ class InstallHandler(GenericHandler): 'upgrade', 'heads'] subprocess.check_call(cmd) - self.rprint(f"\n\tdb schema installed to: [bold green]{obfuscate_url_pw(db_url)}[/bold green]") + self.rprint("\n\tdb schema installed to: " + f"[bold green]{obfuscate_url_pw(db_url)}[/bold green]") return True def show_goodbye(self):