From 9bc2d0988989a92a5736e8f78d21cca13cdc4646 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Sat, 13 Jan 2024 23:23:01 +1100 Subject: [PATCH] feat: add pyright config I was having issues with mypy bother over- and under-reporting certain problems. I've added a pyright config. --- pyproject.toml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 7f4b0d77f2..d063f1ad0e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -280,3 +280,19 @@ module = [ "invokeai.frontend.install.model_install", ] #=== End: MyPy + +[tool.pyright] +include = [ + "invokeai/app/invocations/" +] +exclude = [ + "**/node_modules", + "**/__pycache__", + "invokeai/app/invocations/onnx.py", + "invokeai/app/api/routers/models.py", + "invokeai/app/services/invocation_stats/invocation_stats_default.py", + "invokeai/app/services/model_manager/model_manager_base.py", + "invokeai/app/services/model_manager/model_manager_default.py", + "invokeai/app/services/model_records/model_records_sql.py", + "invokeai/app/util/controlnet_utils.py", +]