From c45a43519a2cb5179a3017f322ed71801cbee892 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Sun, 11 Feb 2024 00:36:54 +1100 Subject: [PATCH] chore: bump deps - ruff 0.1.11 -> 0.2.1 - update config format --- pyproject.toml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d877bac4ff..86a692f984 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -110,7 +110,7 @@ dependencies = [ ] "dev" = ["jurigged", "pudb", "snakeviz", "gprof2dot"] "test" = [ - "ruff==0.1.11", + "ruff==0.2.1", "ruff-lsp", "mypy", "pre-commit", @@ -139,7 +139,7 @@ dependencies = [ "invokeai-merge2" = "invokeai.frontend.merge.merge_diffusers2:main" "invokeai-ti" = "invokeai.frontend.training:invokeai_textual_inversion" "invokeai-model-install" = "invokeai.frontend.install.model_install:main" -"invokeai-model-install2" = "invokeai.frontend.install.model_install2:main" # will eventually be renamed to invokeai-model-install +"invokeai-model-install2" = "invokeai.frontend.install.model_install2:main" # will eventually be renamed to invokeai-model-install "invokeai-migrate3" = "invokeai.backend.install.migrate_to_3:main" "invokeai-update" = "invokeai.frontend.install.invokeai_update:main" "invokeai-metadata" = "invokeai.backend.image_util.invoke_metadata:main" @@ -206,13 +206,6 @@ output = "coverage/index.xml" #=== Begin: Ruff [tool.ruff] line-length = 120 -ignore = [ - "E501", # https://docs.astral.sh/ruff/rules/line-too-long/ - "C901", # https://docs.astral.sh/ruff/rules/complex-structure/ - "B008", # https://docs.astral.sh/ruff/rules/function-call-in-default-argument/ - "B904", # https://docs.astral.sh/ruff/rules/raise-without-from-inside-except/ -] -select = ["B", "C", "E", "F", "W", "I"] exclude = [ ".git", "__pycache__", @@ -221,6 +214,15 @@ exclude = [ "invokeai/frontend/web/node_modules/", ".venv*", ] + +[tool.ruff.lint] +ignore = [ + "E501", # https://docs.astral.sh/ruff/rules/line-too-long/ + "C901", # https://docs.astral.sh/ruff/rules/complex-structure/ + "B008", # https://docs.astral.sh/ruff/rules/function-call-in-default-argument/ + "B904", # https://docs.astral.sh/ruff/rules/raise-without-from-inside-except/ +] +select = ["B", "C", "E", "F", "W", "I"] #=== End: Ruff #=== Begin: MyPy