Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Merge ruff.toml into pyproject.toml (#6431)

Chenlei Hu42086af12355
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"]