Skip to content

Commit 8213d3c

Browse files
Initial project: brain_games
1 parent acac12d commit 8213d3c

5 files changed

Lines changed: 51 additions & 2 deletions

File tree

brain_games/cli.py

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

3+
34
def welcome_user():
45
print("Welcome to the Brain Games!")
56
name = prompt.string("May I have your name? ")

brain_games/scripts/brain_games.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# ruff: noqa: F401
2-
from brain_games.cli import welcome_user # noqa: PYL-E1101
2+
from brain_games.cli import welcome_user
3+
34

45
def main():
56
welcome_user()
6-
7+
78
if __name__ == '__main__':
89
main()
910

hexlet-code.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,10 @@ build-backend = "hatchling.build"
1515
[tool.hatch.build.targets.wheel]
1616
packages = ["brain_games"]
1717

18+
[dependency-groups]
19+
dev = [
20+
"ruff>=0.15.4",
21+
]
22+
1823
[project.scripts]
1924
brain-games = "brain_games.scripts.brain_games:main"

ruff.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
line-length = 80
2+
3+
[lint.per-file-ignores]
4+
# init modules can contain the local imports, logic, unused imports
5+
"__init__.py" = ["F401"]
6+
7+
[lint]
8+
preview = true
9+
select = ["E", "F", "I", "C90"]

uv.lock

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)