Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

Commit

Permalink
chore(dev): validate json config based on metaschema
Browse files Browse the repository at this point in the history
- track file in models/ to trigger generate config schema
  • Loading branch information
KevinNitroG committed Dec 25, 2024
1 parent 7244521 commit b34ff75
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,33 @@ repos:
- id: trailing-whitespace
- id: check-added-large-files
- id: detect-private-key

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.4
hooks:
- id: ruff
args: [--fix]
- id: ruff-format

- repo: https://github.com/commitizen-tools/commitizen
rev: v4.1.0
hooks:
- id: commitizen

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.30.0
hooks:
- id: check-github-workflows
- id: check-metaschema
files: config.json

- repo: local
hooks:
- id: generate-config-schemas
name: Generate Config Schemas
language: system
entry: python -m generate_config_schema
files: '^src/check_phat_nguoi/models/config/.*$'
files: '^src/check_phat_nguoi/models/.*$'
types: [file, python]
stages:
- pre-commit

0 comments on commit b34ff75

Please sign in to comment.