From 79e1346a06ee866a8fe61c5f3eb12b61fa2e7d79 Mon Sep 17 00:00:00 2001 From: Jason Date: Sun, 16 Jun 2024 17:57:22 -0400 Subject: [PATCH] remove an invalid check-only flag --- .github/workflows/fmt.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/fmt.yml b/.github/workflows/fmt.yml index 927ffd8..2df6338 100644 --- a/.github/workflows/fmt.yml +++ b/.github/workflows/fmt.yml @@ -16,15 +16,17 @@ jobs: uses: actions/setup-python@v5 with: python-version: 3.10.14 - - uses: isort/isort-action@v1 - - name: Install Black - run: pip install black + - name: Install Black & isort + run: pip install black isort - name: Run black check run: black --check . --line-length 101 + - name: Run isort check + run: isort . --check-only - name: If needed, commit black changes to the pull request if: failure() run: | black . --line-length 101 + isort . git config --global user.name github-actions git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY