build: update project dependencies and configuration

This commit is contained in:
2569718930@qq.com
2026-03-03 00:56:56 +08:00
parent 18ba87f5b6
commit a4c79e2210
+13 -10
View File
@@ -1,15 +1,10 @@
[tool.ruff]
# Assume Python 3.11.
target-version = "py311"
# Set the maximum line length to 88.
line-length = 88
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
select = ["E", "F"]
ignore = []
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
@@ -34,13 +29,21 @@ exclude = [
"node_modules",
"venv",
]
[tool.ruff.lint]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
select = ["E", "F"]
ignore = ["E501"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
per-file-ignores = {}
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.11.
target-version = "py311"
[tool.ruff.format]
# Like Black, use double quotes for strings.