mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 00:28:31 +00:00
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`
This commit is contained in:
5
.github/workflows/linter.yml
vendored
5
.github/workflows/linter.yml
vendored
@@ -30,4 +30,7 @@ jobs:
|
|||||||
- name: Run Ruff on Changed Files
|
- name: Run Ruff on Changed Files
|
||||||
if: ${{ steps.changed-files.outputs.files != '' }}
|
if: ${{ steps.changed-files.outputs.files != '' }}
|
||||||
run: |
|
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 "{}"
|
||||||
|
|||||||
Reference in New Issue
Block a user