mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-26 10:54:32 +02:00
Reformat with black 26.1.0
This commit is contained in:
parent
a946e80809
commit
cb33bec699
12 changed files with 48 additions and 114 deletions
|
|
@ -42,7 +42,6 @@ from .utils import (
|
|||
TypeTracker,
|
||||
)
|
||||
|
||||
|
||||
CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
|
||||
|
||||
|
||||
|
|
@ -2919,8 +2918,7 @@ def _analyze(db, tables, columns, save, common_limit=10, no_most=False, no_least
|
|||
)
|
||||
details = (
|
||||
(
|
||||
textwrap.dedent(
|
||||
"""
|
||||
textwrap.dedent("""
|
||||
{table}.{column}: ({i}/{total})
|
||||
|
||||
Total rows: {total_rows}
|
||||
|
|
@ -2928,8 +2926,7 @@ def _analyze(db, tables, columns, save, common_limit=10, no_most=False, no_least
|
|||
Blank rows: {num_blank}
|
||||
|
||||
Distinct values: {num_distinct}{most_common_rendered}{least_common_rendered}
|
||||
"""
|
||||
)
|
||||
""")
|
||||
.strip()
|
||||
.format(
|
||||
i=i + 1,
|
||||
|
|
@ -2976,8 +2973,7 @@ def uninstall(packages, yes):
|
|||
|
||||
|
||||
def _generate_convert_help():
|
||||
help = textwrap.dedent(
|
||||
"""
|
||||
help = textwrap.dedent("""
|
||||
Convert columns using Python code you supply. For example:
|
||||
|
||||
\b
|
||||
|
|
@ -2990,8 +2986,7 @@ def _generate_convert_help():
|
|||
Use "-" for CODE to read Python code from standard input.
|
||||
|
||||
The following common operations are available as recipe functions:
|
||||
"""
|
||||
).strip()
|
||||
""").strip()
|
||||
recipe_names = [
|
||||
n
|
||||
for n in dir(recipes)
|
||||
|
|
@ -3005,15 +3000,13 @@ def _generate_convert_help():
|
|||
name, str(inspect.signature(fn)), textwrap.dedent(fn.__doc__.rstrip())
|
||||
)
|
||||
help += "\n\n"
|
||||
help += textwrap.dedent(
|
||||
"""
|
||||
help += textwrap.dedent("""
|
||||
You can use these recipes like so:
|
||||
|
||||
\b
|
||||
sqlite-utils convert my.db mytable mycolumn \\
|
||||
'r.jsonsplit(value, delimiter=":")'
|
||||
"""
|
||||
).strip()
|
||||
""").strip()
|
||||
return help
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue