Skip to content

Commit 5dc89cd

Browse files
committed
add __pycache__, hello.py in .gitignore. fix Makefile, cli.py and brain_games.py
1 parent 1dc6ee0 commit 5dc89cd

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
.idea/
22
.python-version
33
.venv/
4+
__pycache__/
5+
hello.py

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,13 @@ lint:
1212
uv run ruff check brain_games
1313
lint-fix:
1414
uv run ruff check brain_games --fix
15+
brain-calc:
16+
uv run brain-calc
17+
brain-even:
18+
uv run brain-even
19+
brain-gcd:
20+
uv run brain-gcd
21+
brain-prime:
22+
uv run brain-prime
23+
brain-progression:
24+
uv run brain-progression

brain_games/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33

44
def welcome_user():
5+
print('Welcome to the Brain Games!')
56
name = prompt.string('May I have your name? ')
67
print(f'Hello, {name}!')

brain_games/scripts/brain_games.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33

44
def main():
5-
print('Welcome to the Brain Games!')
65
welcome_user()
76

87

0 commit comments

Comments
 (0)