Add Ruff & refactor code

This commit is contained in:
Kirill Samoylenkov 2025-10-13 00:29:48 +05:00
parent 40e5348d2e
commit a2ace372d8
6 changed files with 96 additions and 36 deletions

View file

@ -12,7 +12,38 @@ dependencies = [
"numpy>=2.3.3",
"pandas>=2.3.2",
"pip>=25.2",
"ruff>=0.14.0",
"scikit-learn>=1.7.2",
"scipy>=1.16.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 = ["N803", "T201"]
fixable = ["ALL"]
unfixable = []
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"