3
0
Fork 0

fix: fix 'line-too-long' for pylint

This commit is contained in:
Lance Edgar 2025-08-30 20:15:03 -05:00
parent f86aeff788
commit baa291f289
4 changed files with 14 additions and 6 deletions

View file

@ -17,6 +17,7 @@ enable=anomalous-backslash-in-string,
empty-docstring, empty-docstring,
inconsistent-return-statements, inconsistent-return-statements,
invalid-name, invalid-name,
line-too-long,
no-else-return, no-else-return,
redefined-argument-from-local, redefined-argument-from-local,
too-few-public-methods, too-few-public-methods,

View file

@ -53,7 +53,8 @@ def problems(
list_checks: Annotated[ list_checks: Annotated[
bool, bool,
typer.Option('--list', '-l', 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. Find and report on problems with the data or system.

View file

@ -286,9 +286,13 @@ class UserAPIToken(Base): # pylint: disable=too-few-public-methods
Raw token string, to be used by API clients. Raw token string, to be used by API clients.
""") """)
created = sa.Column(sa.DateTime(timezone=True), nullable=False, default=datetime.datetime.now, doc=""" created = sa.Column(
Date/time when the token was created. sa.DateTime(timezone=True),
""") nullable=False,
default=datetime.datetime.now,
doc="""
Date/time when the token was created.
""")
def __str__(self): def __str__(self):
return self.description or "" return self.description or ""

View file

@ -143,7 +143,8 @@ class InstallHandler(GenericHandler):
""" """
self.rprint(f"\n\t[blue]Welcome to {self.app.get_title()}![/blue]") 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\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? # shall we continue?
if not self.prompt_bool("continue?", True): if not self.prompt_bool("continue?", True):
@ -446,7 +447,8 @@ class InstallHandler(GenericHandler):
'upgrade', 'heads'] 'upgrade', 'heads']
subprocess.check_call(cmd) 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 return True
def show_goodbye(self): def show_goodbye(self):