From 240891d786e42a0093a3529f499b0aee9f19b5d6 Mon Sep 17 00:00:00 2001 From: Athes Date: Mon, 23 Sep 2024 00:18:30 +0200 Subject: [PATCH] display diff on ruff formatting failure --- .github/workflows/lint.yml | 2 +- .github/workflows/pythonpublish.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 52831e7..907e756 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,4 +17,4 @@ jobs: - name: Lint with ruff run: ruff check - name: Format with ruff - run: ruff format --check + run: ruff format --diff diff --git a/.github/workflows/pythonpublish.yml b/.github/workflows/pythonpublish.yml index 619287a..1ca45f5 100644 --- a/.github/workflows/pythonpublish.yml +++ b/.github/workflows/pythonpublish.yml @@ -24,7 +24,7 @@ jobs: - name: Lint with ruff run: ruff check - name: Format with ruff - run: ruff format --check + run: ruff format --diff deploy: needs: lint runs-on: ubuntu-latest