mirror of https://github.com/llvm/circt.git
[CI] Don't include deleted Python files in yapf check (#6350)
This commit is contained in:
parent
a1f892efca
commit
583b36b3bc
|
@ -89,7 +89,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-filter=d $DIFF_COMMIT | grep -e '\.py$' || echo -n)
|
||||
if [[ ! -z $files ]]; then
|
||||
yapf --diff $files
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue