From 31bab351d90ed4081acb9781c365ace5e0df00e6 Mon Sep 17 00:00:00 2001 From: Bowen Liang Date: Fri, 8 Nov 2024 14:20:02 +0800 Subject: [PATCH] update style --- .github/workflows/style.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index b5c148acab32be..24a4813c259d79 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -36,16 +36,14 @@ jobs: - name: Ruff check if: steps.changed-files.outputs.any_changed == 'true' - run: poetry run -C api ruff check ./api + run: | + poetry run -C api ruff check ./api + poetry run -C api ruff format --check ./api - name: Dotenv check if: steps.changed-files.outputs.any_changed == 'true' run: poetry run -C api dotenv-linter ./api/.env.example ./web/.env.example - - name: Ruff formatter check - if: steps.changed-files.outputs.any_changed == 'true' - run: poetry run -C api ruff format --check ./api - - name: Lint hints if: failure() run: echo "Please run 'dev/reformat' to fix the fixable linting errors."