fix: fix 'line-too-long' for pylint
This commit is contained in:
parent
f86aeff788
commit
baa291f289
4 changed files with 14 additions and 6 deletions
|
@ -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,
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -286,7 +286,11 @@ 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="""
|
||||
created = sa.Column(
|
||||
sa.DateTime(timezone=True),
|
||||
nullable=False,
|
||||
default=datetime.datetime.now,
|
||||
doc="""
|
||||
Date/time when the token was created.
|
||||
""")
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue