From a0bcc47b2e6e8830fc23b4e6aec4cc315f6f7b66 Mon Sep 17 00:00:00 2001 From: amithkoujalgi Date: Tue, 11 Mar 2025 10:08:57 +0530 Subject: [PATCH] Add pre-commit configuration file test --- .pre-commit-config.yaml | 18 +++++++++--------- .../java/io/github/ollama4j/OllamaAPI.java | 3 --- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 013455b..cf1cbba 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,20 +4,20 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: "v5.0.0" hooks: - - id: check-added-large-files # - id: no-commit-to-branch # args: ['--branch', 'main'] - - id: check-yaml - - id: check-json - - id: check-xml - - id: end-of-file-fixer - exclude: \.json$ - files: \.py$ - - id: trailing-whitespace - - id: mixed-line-ending - id: check-merge-conflict + - id: check-added-large-files + - id: check-yaml + - id: check-xml + - id: check-json - id: pretty-format-json args: ['--no-sort-keys', '--autofix', '--indent=4'] + - id: end-of-file-fixer + exclude: \.json$ + files: \.java$|\.xml$ + - id: trailing-whitespace + - id: mixed-line-ending # for commit message formatting - repo: https://github.com/commitizen-tools/commitizen diff --git a/src/main/java/io/github/ollama4j/OllamaAPI.java b/src/main/java/io/github/ollama4j/OllamaAPI.java index efab9a9..5d64044 100644 --- a/src/main/java/io/github/ollama4j/OllamaAPI.java +++ b/src/main/java/io/github/ollama4j/OllamaAPI.java @@ -1156,6 +1156,3 @@ public class OllamaAPI { } } } - - -