From bed3304a3eda9f1f68444d4755fa9fd308cda120 Mon Sep 17 00:00:00 2001 From: Taos Transue Date: Mon, 26 Jun 2023 15:25:32 -0700 Subject: [PATCH] reformatting --- ...otation-matcher.json => flake8-linter-matcher.json} | 0 .github/workflows/flake8.yml | 10 +++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) rename .github/workflows/{flake8-pr-annotation-matcher.json => flake8-linter-matcher.json} (100%) diff --git a/.github/workflows/flake8-pr-annotation-matcher.json b/.github/workflows/flake8-linter-matcher.json similarity index 100% rename from .github/workflows/flake8-pr-annotation-matcher.json rename to .github/workflows/flake8-linter-matcher.json diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml index 1ddc8199cb..fa28ca902e 100644 --- a/.github/workflows/flake8.yml +++ b/.github/workflows/flake8.yml @@ -14,13 +14,17 @@ jobs: - name: Install Flake8 linter run: pip install flake8 - name: Setup Flake8 output matcher for PR annotations - run: echo '::add-matcher::.github/workflows/flake8-pr-annotation-matcher.json' + run: echo '::add-matcher::.github/workflows/flake8-linter-matcher.json' - name: Get names of changed Python files env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PR_NUMBER: ${{ github.event.pull_request.number }} - run: echo CHANGED_FILES=$(gh pr view ${{ env.PR_NUMBER }} --repo pvlib/pvlib-python --json files -q '.files[].path | select(endswith(".py"))') - >> ${{ github.env }} + run: echo CHANGED_FILES=$( + gh pr view ${{ env.PR_NUMBER }} + --repo pvlib/pvlib-python + --json files + -q '.files[].path | select(endswith(".py"))' + ) >> ${{ github.env }} - name: Run Flake8 linter if: ${{ env.CHANGED_FILES != ''}} run: flake8