Skip to content

Commit

Permalink
Cleanup: clarify --config doc-string, run black auto formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
ideasman42 committed May 16, 2022
1 parent 0cdc3b0 commit 1df83e0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions nerd-dictation
Original file line number Diff line number Diff line change
Expand Up @@ -615,8 +615,7 @@ class from_words_to_digits:
)
if i != i_next:
word_list[i:i_next] = [
("{:,d}".format(int(number)) if (numbers_use_separator and allow_reformat) else number)
+ suffix
("{:,d}".format(int(number)) if (numbers_use_separator and allow_reformat) else number) + suffix
]

if (i_number_prev != -1) and (i_number_prev + 1 != i):
Expand Down Expand Up @@ -746,8 +745,7 @@ def text_from_vosk_pipe(

if not os.path.exists(vosk_model_dir):
sys.stderr.write(
"Please download the model from https://alphacephei.com/vosk/models and unpack it to %r.\n"
% vosk_model_dir
"Please download the model from https://alphacephei.com/vosk/models and unpack it to %r.\n" % vosk_model_dir
)
sys.exit(1)

Expand Down Expand Up @@ -1166,8 +1164,8 @@ This creates the directory used to store internal data, so other commands such a
type=str,
metavar="FILE",
help=(
"Override the file used for the user configuration\n"
"Use an empty string to disable a custom configuration."
"Override the file used for the user configuration.\n"
"Use an empty string to prevent the users configuration being read."
),
required=False,
)
Expand Down

0 comments on commit 1df83e0

Please sign in to comment.