apply ruff linter

This commit is contained in:
Aiden Dai
2025-03-13 13:50:57 +08:00
parent 33e8fcfd3b
commit f21b9a2e84
10 changed files with 128 additions and 181 deletions

23
ruff.toml Normal file
View File

@@ -0,0 +1,23 @@
line-length = 120
indent-width = 4
target-version = "py312"
exclude = [
".venv",
".vscode",
"test/*"
]
[lint]
select = ["E", "F"]
ignore = [
"E501",
"B008",
"C901",
"F401",
"W191",
]
[format]
# use double quotes for strings.
quote-style = "double"