diff --git a/extensions-builtin/sdnq b/extensions-builtin/sdnq index 996f3acd6..5bd24ef2d 160000 --- a/extensions-builtin/sdnq +++ b/extensions-builtin/sdnq @@ -1 +1 @@ -Subproject commit 996f3acd6c444e2833b137b2654f520dc1a2534b +Subproject commit 5bd24ef2dd07270434f961ba2a032502f0437a29 diff --git a/modules/postprocessing.py b/modules/postprocessing.py index fa89b0e50..ae8c099e8 100644 --- a/modules/postprocessing.py +++ b/modules/postprocessing.py @@ -1,8 +1,5 @@ import os -import tempfile - from PIL import Image - from modules import shared, images, devices, errors, scripts_manager, scripts_postprocessing, infotext from modules.logger import log from modules.shared import opts diff --git a/package.json b/package.json index 24245820b..982836fd5 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "ty": ". venv/bin/activate && ty check --force-exclude", "codespell": ". venv/bin/activate && codespell", "compile": ". venv/bin/activate && python test/test-compile.py", - "full": "npm run lint && npm run codespell && npm run ty && npm run pyright" + "full": "npm run precommit && npm run eslint && npm run tsc && npm run ruff && npm run pylint && npm run codespell && npm run ty && npm run pyright" }, "devDependencies": { "@eslint/compat": "^2.1.0", diff --git a/requirements.txt b/requirements.txt index 27717958c..addb42bef 100644 --- a/requirements.txt +++ b/requirements.txt @@ -46,7 +46,6 @@ typing-extensions==4.16.0 sentencepiece==0.2.1 # lint -ty ruff pylint pre-commit diff --git a/test/lint.sh b/test/lint.sh new file mode 100755 index 000000000..29e0f9050 --- /dev/null +++ b/test/lint.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash + +run_test() { + local name="$1" + shift + echo "# Start: $name" + if "$@"; then + echo "# End: Pass $name" + return 0 + else + echo "# End: Fail $name" + return 1 + fi +} + +echo "# SD.Next Static Checks" +echo "# Activate VENV" +source venv/bin/activate || true +echo "# Install toolkit" +pip install -U pre-commit ruff pylint codespell ty pyright || true + +run_test "Precommit" npm run precommit || true +run_test "ESLint" npm run eslint || true +run_test "TypeScript" npm run tsc || true +run_test "Ruff" npm run ruff || true +run_test "Pylint" npm run pylint || true +run_test "Codespell" npm run codespell || true +run_test "Ty" npm run ty || true +run_test "Pyright" npm run pyright || true + +echo "Done..."