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: