Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the pre-commit hook from jsonschema2md2 #1080

Merged
merged 1 commit into from
Apr 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -121,7 +121,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