From a4c79e221049ff20db13d91f9097be37230c56c3 Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Tue, 3 Mar 2026 00:56:56 +0800 Subject: [PATCH] build: update project dependencies and configuration --- pyproject.toml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9ef63687..27c56656 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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.