Skip to content

Commit 0184d2a

Browse files
author
vdz
committed
ruff check fix
1 parent 5f61a58 commit 0184d2a

File tree

11 files changed

+28
-12
lines changed

11 files changed

+28
-12
lines changed

brain_games/games/brain_calc.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
from brain_games.cli import welcome_user
2-
import operator
31
import random
2+
43
import prompt
54

5+
from brain_games.cli import welcome_user
6+
67
name = welcome_user()
78

9+
810
def calc():
911
print('What is the result of the expression?')
1012
count = 0
13+
1114
def add(num1, num2):
1215
return num1 + num2
1316

brain_games/games/brain_even.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
from brain_games.cli import welcome_user
21
import random
2+
33
import prompt
44

5+
from brain_games.cli import welcome_user
6+
57
name = welcome_user()
68

9+
710
def even():
811
print('Answer "yes" if the number is even, otherwise answer "no".')
912
count = 0

brain_games/games/brain_games.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
from brain_games.cli import welcome_user
21
from brain_games.scripts.main import greet
32

3+
from brain_games.cli import welcome_user
4+
45

56
def main():
67
greet()

brain_games/games/brain_gcd.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
from brain_games.cli import welcome_user
21
import math
32
import random
3+
44
import prompt
55

6+
from brain_games.cli import welcome_user
7+
68
name = welcome_user()
79

10+
811
def gcd():
912
print('Find the greatest common divisor of given numbers.')
1013
count = 0

brain_games/games/brain_prime.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
from brain_games.cli import welcome_user
21
import random
2+
33
import prompt
44

5+
from brain_games.cli import welcome_user
6+
57
name = welcome_user()
68

9+
710
def prime():
811
count = 0
912
print('Answer "yes" if given number is prime. Otherwise answer "no".')

brain_games/games/brain_progression.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
from brain_games.cli import welcome_user
21
import random
2+
33
import prompt
44

5+
from brain_games.cli import welcome_user
6+
57
name = welcome_user()
68

9+
710
def progression():
811
count = 0
912
print('What number is missing in the progression?')

brain_games/scripts/calc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from brain_games.games.brain_calc import calc, main
1+
from brain_games.games.brain_calc import main
22

33
if __name__ == "__main__":
44
main()

brain_games/scripts/even.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from brain_games.games.brain_even import even, main
1+
from brain_games.games.brain_even import main
22

33
if __name__ == "__main__":
44
main()

brain_games/scripts/gcd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from brain_games.games.brain_gcd import gcd, main
1+
from brain_games.games.brain_gcd import main
22

33
if __name__ == "__main__":
44
main()

brain_games/scripts/prime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from brain_games.games.brain_prime import prime, main
1+
from brain_games.games.brain_prime import main
22

33
if __name__ == "__main__":
44
main()

0 commit comments

Comments
 (0)