style: 使用ruff 工具优化代码风格

This commit is contained in:
2026-03-30 23:32:28 +08:00
parent 345fd2f091
commit 426af2d75f
52 changed files with 1836 additions and 1493 deletions
+11 -2
View File
@@ -26,7 +26,7 @@ classifiers = [
urls = { Homepage = "https://github.com/ViperEkura/KHAOSZ" }
[project.optional-dependencies]
dev = ["pytest==9.0.2"]
dev = ["pytest==9.0.2", "ruff"]
[tool.setuptools.packages.find]
where = ["."]
@@ -35,4 +35,13 @@ where = ["."]
extra-index-url = "https://download.pytorch.org/whl/cu126"
[tool.setuptools.dynamic]
version = { attr = "khaosz.__version__" }
version = { attr = "khaosz.__version__" }
[tool.ruff]
target-version = "py312"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"