mirror of
https://github.com/amithkoujalgi/ollama4j.git
synced 2025-05-15 11:57:12 +02:00
Add pre-commit configuration file
test
This commit is contained in:
parent
99beb3e6d0
commit
57ecbc2572
@ -5,8 +5,8 @@ repos:
|
|||||||
rev: "v5.0.0"
|
rev: "v5.0.0"
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
- id: no-commit-to-branch
|
# - id: no-commit-to-branch
|
||||||
- id: check-toml
|
# args: ['--branch', 'main']
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
- id: check-json
|
- id: check-json
|
||||||
- id: check-xml
|
- id: check-xml
|
||||||
@ -15,6 +15,9 @@ repos:
|
|||||||
files: \.py$
|
files: \.py$
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- id: mixed-line-ending
|
- id: mixed-line-ending
|
||||||
|
- id: check-merge-conflict
|
||||||
|
- id: pretty-format-json
|
||||||
|
args: ['--no-sort-keys', '--autofix', '--indent=4']
|
||||||
|
|
||||||
# for commit message formatting
|
# for commit message formatting
|
||||||
- repo: https://github.com/commitizen-tools/commitizen
|
- repo: https://github.com/commitizen-tools/commitizen
|
||||||
@ -23,14 +26,13 @@ repos:
|
|||||||
- id: commitizen
|
- id: commitizen
|
||||||
stages: [commit-msg]
|
stages: [commit-msg]
|
||||||
|
|
||||||
# for java code quality
|
# # for java code quality
|
||||||
- repo: https://github.com/gherynos/pre-commit-java
|
# - repo: https://github.com/gherynos/pre-commit-java
|
||||||
rev: v0.2.1
|
# rev: v0.6.10
|
||||||
hooks:
|
# hooks:
|
||||||
- id: pmd
|
# - id: pmd
|
||||||
exclude: /test/
|
# exclude: /test/
|
||||||
- id: cpd
|
# - id: cpd
|
||||||
exclude: /test/
|
# exclude: /test/
|
||||||
- id: checkstyle
|
# - id: checkstyle
|
||||||
exclude: /test/
|
# exclude: /test/
|
||||||
# ...
|
|
@ -1159,4 +1159,3 @@ public class OllamaAPI {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user