From 2c31f5995cecf7f41b3045aa8238340755916e68 Mon Sep 17 00:00:00 2001 From: Lucas Gomide Date: Fri, 16 May 2025 09:50:05 -0300 Subject: [PATCH] ci: ignore explictly templates from ruff check Ruff only applies --exclude to files it discovers itself. So we have to skip manually the same files excluded from `ruff.toml` --- .github/workflows/linter.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 3e1571830..421e37c01 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -30,4 +30,7 @@ jobs: - name: Run Ruff on Changed Files if: ${{ steps.changed-files.outputs.files != '' }} run: | - echo "${{ steps.changed-files.outputs.files }}" | tr " " "\n" | xargs -I{} ruff check "{}" + echo "${{ steps.changed-files.outputs.files }}" \ + | tr ' ' '\n' \ + | grep -v 'src/crewai/cli/templates/' \ + | xargs -I{} ruff check "{}"