style: 使用ruff 工具优化代码风格
This commit is contained in:
+11
-2
@@ -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"
|
||||
Reference in New Issue
Block a user