diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index ffb9058..25e4fd1 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -18,7 +18,6 @@ jobs: - uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5 with: python-version: 3.x - cache: pip - run: pip install commitizen - name: Check commit messages run: cz check --rev-range origin/${GITHUB_BASE_REF}.. diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0e93c64..7971b76 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,6 +19,9 @@ repos: - id: no-commit-to-branch - id: mixed-line-ending - id: end-of-file-fixer + - id: pretty-format-json + args: [--autofix, --no-ensure-ascii, '--top-keys=openapi,info,servers,paths,components'] + files: docs/openapi.json - repo: local hooks: - id: sensitive-data-leak-urls