From b4e5b563c6dd425931b4adff95f1e8a2793cb091 Mon Sep 17 00:00:00 2001 From: vladmandic Date: Wed, 11 Feb 2026 10:47:07 +0100 Subject: [PATCH] update lint rules Signed-off-by: vladmandic --- .pre-commit-config.yaml | 5 +++++ eslint.config.mjs | 1 + {cli => test}/test-caption-api.py | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) rename {cli => test}/test-caption-api.py (99%) mode change 100755 => 100644 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 357042c9c..5c15044f4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,3 +41,8 @@ repos: .*\.md| .github/ISSUE_TEMPLATE/.*\.yml )$ +- repo: https://github.com/oliv5/pre-commit-indents-to-spaces + rev: v0.0.1 + hooks: + - id: indents-to-tabs + args: ["--spaces=4"] diff --git a/eslint.config.mjs b/eslint.config.mjs index 13b247a3f..7a5f64c3f 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -25,6 +25,7 @@ const jsConfig = defineConfig([ ecmaVersion: 'latest', }, globals: { // Set per project + ...globals.node, ...globals.builtin, ...globals.browser, ...globals.jquery, diff --git a/cli/test-caption-api.py b/test/test-caption-api.py old mode 100755 new mode 100644 similarity index 99% rename from cli/test-caption-api.py rename to test/test-caption-api.py index 7c9e3726a..ab586f504 --- a/cli/test-caption-api.py +++ b/test/test-caption-api.py @@ -45,7 +45,7 @@ OCR_TEST_IMAGE = 'models/Reference/HiDream-ai--HiDream-I1-Fast.jpg' BRACKET_TEST_IMAGE = 'models/Reference/SDXL-Flash_Mini.jpg' # Custom prefill text used for dual-prefill verification across tests -CUSTOM_PREFILL = "Vlado is the best, and I'm looking at his robot which" +CUSTOM_PREFILL = "I'm looking at robot which" class CaptionAPITest: