From ea9017862fdb88b2fdfd250ed3cbbd35c35c160f Mon Sep 17 00:00:00 2001 From: asagi4 <130366179+asagi4@users.noreply.github.com> Date: Fri, 19 Dec 2025 21:17:41 +0200 Subject: [PATCH] Add ruff and ty --- pyproject.toml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index af21658..40844db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,6 +6,8 @@ license = { file = "LICENSE" } # some lark versions older than 1.1.9 apparently have a bug that breaks things, see https://github.com/asagi4/comfyui-prompt-control/issues/35 dependencies = ["lark >= 1.1.9"] +requires-python = ">= 3.10" + [project.urls] Repository = "https://github.com/asagi4/comfyui-prompt-control" @@ -17,3 +19,22 @@ Icon = "" [tool.pyright] extraPaths = ["../../"] exclude = ["prompt_control/*test*"] + +[tool.ty.src] +exclude = ["prompt_control/*test*"] + +[tool.ty.environment] +extra-paths = ["../.."] + +[tool.ruff] +line-length = 120 + +[tool.ruff.lint] +select = [ + "E", + "F", + "UP", + "B", + "SIM", + "I", +]