diff --git a/pre-commit-config.yaml b/.pre-commit-config.yaml similarity index 54% rename from pre-commit-config.yaml rename to .pre-commit-config.yaml index 839c949..013455b 100644 --- a/pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,8 +5,8 @@ repos: rev: "v5.0.0" hooks: - id: check-added-large-files - - id: no-commit-to-branch - - id: check-toml +# - id: no-commit-to-branch +# args: ['--branch', 'main'] - id: check-yaml - id: check-json - id: check-xml @@ -15,6 +15,9 @@ repos: files: \.py$ - id: trailing-whitespace - id: mixed-line-ending + - id: check-merge-conflict + - id: pretty-format-json + args: ['--no-sort-keys', '--autofix', '--indent=4'] # for commit message formatting - repo: https://github.com/commitizen-tools/commitizen @@ -23,14 +26,13 @@ repos: - id: commitizen stages: [commit-msg] - # for java code quality - - repo: https://github.com/gherynos/pre-commit-java - rev: v0.2.1 - hooks: - - id: pmd - exclude: /test/ - - id: cpd - exclude: /test/ - - id: checkstyle - exclude: /test/ - # ... \ No newline at end of file +# # for java code quality +# - repo: https://github.com/gherynos/pre-commit-java +# rev: v0.6.10 +# hooks: +# - id: pmd +# exclude: /test/ +# - id: cpd +# exclude: /test/ +# - id: checkstyle +# exclude: /test/ \ No newline at end of file diff --git a/src/main/java/io/github/ollama4j/OllamaAPI.java b/src/main/java/io/github/ollama4j/OllamaAPI.java index 519eec7..efab9a9 100644 --- a/src/main/java/io/github/ollama4j/OllamaAPI.java +++ b/src/main/java/io/github/ollama4j/OllamaAPI.java @@ -1159,4 +1159,3 @@ public class OllamaAPI { -