From 42086af123554020278f2c68f06776295530198a Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Sat, 11 Jan 2025 12:52:46 -0500 Subject: [PATCH] Merge ruff.toml into pyproject.toml (#6431) --- pyproject.toml | 12 ++++++++++++ ruff.toml | 15 --------------- 2 files changed, 12 insertions(+), 15 deletions(-) delete mode 100644 ruff.toml diff --git a/pyproject.toml b/pyproject.toml index 1d9d7b3f0..b747d6ef7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,3 +9,15 @@ requires-python = ">=3.9" homepage = "https://www.comfy.org/" repository = "https://github.com/comfyanonymous/ComfyUI" documentation = "https://docs.comfy.org/" + +[tool.ruff] +lint.select = [ + "S307", # suspicious-eval-usage + "S102", # exec + "T", # print-usage + "W", + # The "F" series in Ruff stands for "Pyflakes" rules, which catch various Python syntax errors and undefined names. + # See all rules here: https://docs.astral.sh/ruff/rules/#pyflakes-f + "F", +] +exclude = ["*.ipynb"] diff --git a/ruff.toml b/ruff.toml deleted file mode 100644 index 808a2ad07..000000000 --- a/ruff.toml +++ /dev/null @@ -1,15 +0,0 @@ -# Disable all rules by default -lint.ignore = ["ALL"] - -# Enable specific rules -lint.select = [ - "S307", # suspicious-eval-usage - "S102", # exec - "T", # print-usage - "W", - # The "F" series in Ruff stands for "Pyflakes" rules, which catch various Python syntax errors and undefined names. - # See all rules here: https://docs.astral.sh/ruff/rules/#pyflakes-f - "F", -] - -exclude = ["*.ipynb"]