From aca255140cb4fadd5af78aef68ea612cf77b86c7 Mon Sep 17 00:00:00 2001 From: ariwk Date: Tue, 22 Oct 2024 16:41:23 +0200 Subject: [PATCH] chore: fix pr.yml --- .github/workflows/pr.yml | 1 - .pre-commit-config.yaml | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) 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