Skip to content

Commit c034433

Browse files
committed
test: autofix
1 parent a9cb04e commit c034433

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

everyvoice/wizard/dataset.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
import questionary
1010
import rich
11+
from tqdm import tqdm
1112
from rich.panel import Panel
1213
from rich.style import Style
13-
from tqdm import tqdm
1414

1515
from everyvoice.config.type_definitions import DatasetTextRepresentation
1616
from everyvoice.text.utils import guess_graphemes_in_text, guess_ipa_phones_in_text
@@ -34,19 +34,15 @@ class DatasetNameStep(Step):
3434
DEFAULT_NAME = StepNames.dataset_name_step
3535

3636
def prompt(self):
37-
return input(
38-
"What would you like to call this dataset? This is needed because EveryVoice lets you train models with multiple sources of data. Please choose a name that distinguishes this data source, e.g. 'john-english' or 'maria-spanish' or something similarly descriptive: "
39-
)
37+
return input( "What would you like to call this dataset? This is needed because EveryVoice lets you train models with multiple sources of data. Please choose a name that distinguishes this data source, e.g. 'john-english' or 'maria-spanish' or something similarly descriptive: ")
4038

4139
def validate(self, response):
4240
if len(response) == 0:
4341
print("Sorry, your dataset needs a name.")
4442
return False
4543
slug = slugify(response)
4644
if not slug == response:
47-
print(
48-
f"Sorry, your name: '{response}' is not valid, since it will be used to create a file and special characters are not permitted in filenames. Please re-type something like {slug} instead."
49-
)
45+
print( f"Sorry, your name: '{response}' is not valid, since it will be used to create a file and special characters are not permitted in filenames. Please re-type something like {slug} instead.")
5046
return False
5147
return True
5248

0 commit comments

Comments
 (0)