Skip to content

Commit 1bcab4a

Browse files
committed
Добавлен ruff, исправлены ошибки синтаксиса
1 parent b898426 commit 1bcab4a

File tree

3 files changed

+54
-2
lines changed

3 files changed

+54
-2
lines changed

brain_games/scripts/brain_games.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ def main():
55
print("Welcome to the Brain Games!")
66
welcome_user()
77

8+
89
if __name__ == "__main__":
910
main()

pyproject.toml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "hexlet-code"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
description = "Add your description here"
55
readme = "README.md"
66
requires-python = ">=3.12"
@@ -15,5 +15,22 @@ build-backend = "hatchling.build"
1515
[tool.hatch.build.targets.wheel]
1616
packages = ["brain_games"]
1717

18+
[dependency-groups]
19+
dev = [
20+
"ruff>=0.13.2",
21+
]
22+
1823
[project.scripts]
1924
brain-games = "brain_games.scripts.brain_games:main"
25+
26+
[tool.ruff]
27+
line-length = 80
28+
target-version = "py310"
29+
30+
[tool.ruff.lint]
31+
preview = true
32+
select = ["E", "F", "I", "C90"]
33+
34+
[tool.ruff.lint.per-file-ignores]
35+
"__init__.py" = ["F401"]
36+

uv.lock

Lines changed: 35 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)