Skip to content

Commit

Permalink
Merge pull request #1080 from camptocamp/pre-commit-jsonschema2md
Browse files Browse the repository at this point in the history
Use the pre-commit hook from jsonschema2md2
  • Loading branch information
sbrunner authored Apr 6, 2023
2 parents 26b498b + 428ec8d commit 2e65dfd
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 25 deletions.
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ci:
- helm-lock
- ripsecrets
- jsonschema-gentypes
- jsonschema2md

repos:
- repo: https://github.com/pre-commit/mirrors-prettier
Expand Down Expand Up @@ -38,6 +39,21 @@ repos:
ĵsonschema-gentypes.yaml$
|^c2cciutils/schema.*\.json$
)
- repo: https://github.com/sbrunner/jsonschema2md2
rev: 0.6.0
hooks:
- id: jsonschema2md
files: c2cciutils/schema.json
args:
- --pre-commit
- c2cciutils/schema.json
- config.md
- id: jsonschema2md
files: c2cciutils/schema-applications.json
args:
- --pre-commit
- c2cciutils/schema-applications.json
- applications.md
- repo: https://github.com/sbrunner/hooks
rev: 0.5.0
hooks:
Expand Down
7 changes: 0 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,3 @@ checks: prospector ## Do the checks
.PHONY: prospector
prospector: build-checker ## Run Prospector
docker run --rm --volume=${PWD}:/app $(GITHUB_REPOSITORY)-checker prospector --ignore-paths=example-project/ --output=pylint --die-on-tool-error

.PHONY: jsonschema
jsonschema: ## Generate files depends on the JSON schema
jsonschema-gentypes
jsonschema2md c2cciutils/schema.json config.md
jsonschema2md c2cciutils/schema-applications.json applications.md
c2cciutils-checks --fix --check=prettier
18 changes: 1 addition & 17 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ types-setuptools = "67.6.0.6"
types-markdown = "3.4.2.6"
types-toml = "0.10.8.6"
typing-extensions = "4.5.0"
jsonschema2md2 = "0.6.0"

[build-system]
requires = [
Expand Down

0 comments on commit 2e65dfd

Please sign in to comment.