Refactor code

This commit is contained in:
Kirill Samoylenkov 2025-10-29 22:44:59 +05:00
parent d5ace82918
commit 0d0acc1dc3
3 changed files with 101 additions and 30 deletions

View file

@ -12,4 +12,32 @@ dependencies = [
"pygame>=2.6.1",
"pytest==7.1.3",
"pytest-timeout==2.1.0",
"ruff>=0.14.2",
]
[tool.ruff]
target-version = "py313"
line-length = 70
indent-width = 4
exclude = [
".git/",
"venv/",
".venv/",
"vscode/",
"__pycache__/",
".ruff_cache/",
]
[tool.ruff.lint]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
select = ["E", "F", "N", "I", "C90", "T", "S"]
ignore = []
fixable = ["ALL"]
unfixable = []
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"