Skip to content

Commit

Permalink
Add json-schema-for-humans to pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Izzette committed Jun 8, 2024
1 parent 0ccbd51 commit a0ecde0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

.venv
dist/
8 changes: 8 additions & 0 deletions .jsfh-conf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
template_name: md
template_md_options:
properties_table_columns:
- Property
- Type
- Title/Description
footer_show_time: false
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ repos:
- id: go-fmt
- id: golangci-lint
- id: go-mod-tidy
- repo: local
hooks:
- id: json-schema-for-humans
name: json-schema-for-humans
description: Generate doc/SCHEMA.md with https://github.com/coveooss/json-schema-for-humans
entry: bash -c 'python -m venv .venv && source .venv/bin/activate && pip install --quiet json-schema-for-humans && generate-schema-doc --config-file .jsfh-conf.yaml internal/logging/schemas doc/SCHEMA.md'
language: system
files: internal/logging/schemas
types:
- json
- repo: local
hooks:
- id: trufflehog
Expand Down

0 comments on commit a0ecde0

Please sign in to comment.