[CI] Prevent yapf from linting .py.in files. (#2466)

This commit is contained in:
Julian Oppermann 2022-01-16 09:41:53 +01:00 committed by GitHub
parent e3f2c4eec3
commit 65a685efdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ jobs:
if: ${{ always() }}
shell: bash
run: |
files=$(git diff --name-only $DIFF_COMMIT | grep -e '\.py' || echo -n)
files=$(git diff --name-only $DIFF_COMMIT | grep -e '\.py$' || echo -n)
if [[ ! -z $files ]]; then
yapf --diff $files
fi