From 43987f956af40960b169a100a04c9a5b166e752a Mon Sep 17 00:00:00 2001 From: Kirill Druzhinin Date: Wed, 28 Feb 2024 16:07:55 +0100 Subject: [PATCH] Configure prettier --- .github/workflows/ci.yml | 6 +++++- .pre-commit-config.yaml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6a16e18..ed41416 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,10 +26,14 @@ jobs: uses: pdm-project/setup-pdm@v4 with: python-version: "3.10" - - name: Install dependencies run: | pdm sync -d + - name: Run Prettier + uses: creyD/prettier_action@v4.3 + with: + dry: True + prettier_options: "--check **/*.{json,yaml,yml,md}" - name: Run Tox run: | pdm run tox -e py,lint diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4287718..a704ead 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: hooks: - id: prettier description: Run prettier - types_or: [yaml, toml, json, markdown] + types_or: [yaml, json, markdown] - repo: local hooks: - id: tox_lint