Skip checking python comments

This commit is contained in:
Zhichang Yu
2025-11-14 11:53:14 +08:00
parent 1d4d67daf8
commit 3f2472f1b9

View File

@ -96,7 +96,7 @@ jobs:
args: "check" args: "check"
- name: Check comments of changed Python files - name: Check comments of changed Python files
if: ${{ !cancelled() && !failure() }} if: ${{ false }}
run: | run: |
if [[ ${{ github.event_name }} == 'pull_request_target' ]]; then if [[ ${{ github.event_name }} == 'pull_request_target' ]]; then
CHANGED_FILES=$(git diff --name-only ${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }} \ CHANGED_FILES=$(git diff --name-only ${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }} \
@ -110,7 +110,7 @@ jobs:
for file in "${files[@]}"; do for file in "${files[@]}"; do
if [ -f "$file" ]; then if [ -f "$file" ]; then
if python3 check_comment_ascii.py $file"; then if python3 check_comment_ascii.py "$file"; then
echo "✅ $file" echo "✅ $file"
else else
echo "❌ $file" echo "❌ $file"