Skip to content

Commit e7a2b6b

Browse files
committed
Apply ruff format to step_2/3/4 bot.py
1 parent 9d22a14 commit e7a2b6b

3 files changed

Lines changed: 36 additions & 24 deletions

File tree

chatterbot/source_code_step_2/bot.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@
44
chatbot = ChatBot("Chatpot")
55

66
trainer = ListTrainer(chatbot)
7-
trainer.train([
8-
"Hi",
9-
"Welcome, friend 🤗",
10-
])
11-
trainer.train([
12-
"Are you a plant?",
13-
"No, I'm the pot below the plant!",
14-
])
7+
trainer.train(
8+
[
9+
"Hi",
10+
"Welcome, friend 🤗",
11+
]
12+
)
13+
trainer.train(
14+
[
15+
"Are you a plant?",
16+
"No, I'm the pot below the plant!",
17+
]
18+
)
1519

1620
exit_conditions = (":q", "quit", "exit")
1721
while True:

chatterbot/source_code_step_3/bot.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@
44
chatbot = ChatBot("Chatpot")
55

66
trainer = ListTrainer(chatbot)
7-
trainer.train([
8-
"Hi",
9-
"Welcome, friend 🤗",
10-
])
11-
trainer.train([
12-
"Are you a plant?",
13-
"No, I'm the pot below the plant!",
14-
])
7+
trainer.train(
8+
[
9+
"Hi",
10+
"Welcome, friend 🤗",
11+
]
12+
)
13+
trainer.train(
14+
[
15+
"Are you a plant?",
16+
"No, I'm the pot below the plant!",
17+
]
18+
)
1519

1620
exit_conditions = (":q", "quit", "exit")
1721
while True:

chatterbot/source_code_step_4/bot.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@
44
chatbot = ChatBot("Chatpot")
55

66
trainer = ListTrainer(chatbot)
7-
trainer.train([
8-
"Hi",
9-
"Welcome, friend 🤗",
10-
])
11-
trainer.train([
12-
"Are you a plant?",
13-
"No, I'm the pot below the plant!",
14-
])
7+
trainer.train(
8+
[
9+
"Hi",
10+
"Welcome, friend 🤗",
11+
]
12+
)
13+
trainer.train(
14+
[
15+
"Are you a plant?",
16+
"No, I'm the pot below the plant!",
17+
]
18+
)
1519

1620
exit_conditions = (":q", "quit", "exit")
1721
while True:

0 commit comments

Comments
 (0)