Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
fix: make pre-commit hooks portable on Windows (#6881)
Devulapalli Naga Sri Vaishnavia53ecc17f182
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex 06aa5fa88..64ec22459 100644--- a/.pre-commit-config.yaml+++ b/.pre-commit-config.yaml@@ -3,19 +3,19 @@ repos:hooks:- id: ruffname: ruff- entry: bash -c 'source .venv/bin/activate && uv run ruff check --config pyproject.toml "$@"' --+ entry: bash -c 'case "$OSTYPE" in msys*|cygwin*|win32*) source .venv/Scripts/activate ;; *) source .venv/bin/activate ;; esac && uv run ruff check --config pyproject.toml "$@"' --language: systempass_filenames: truetypes: [python]- id: ruff-formatname: ruff-format- entry: bash -c 'source .venv/bin/activate && uv run ruff format --config pyproject.toml "$@"' --+ entry: bash -c 'case "$OSTYPE" in msys*|cygwin*|win32*) source .venv/Scripts/activate ;; *) source .venv/bin/activate ;; esac && uv run ruff format --config pyproject.toml "$@"' --language: systempass_filenames: truetypes: [python]- id: mypyname: mypy- entry: bash -c 'source .venv/bin/activate && uv run mypy --config-file pyproject.toml "$@"' --+ entry: bash -c 'case "$OSTYPE" in msys*|cygwin*|win32*) source .venv/Scripts/activate ;; *) source .venv/bin/activate ;; esac && uv run mypy --config-file pyproject.toml "$@"' --language: systempass_filenames: truetypes: [python]@@ -32,7 +32,7 @@ repos:# TODO: drop --ignore-vuln GHSA-8mgp-746c-j5xp when bumping nltk past 3.10.3.# TODO: drop --ignore-vuln GHSA-4j2p-28q2-5m79 when bumping accelerate past 1.14.0.entry: >-- bash -c 'source .venv/bin/activate && uv run pip-audit --skip-editable+ bash -c 'case "$OSTYPE" in msys*|cygwin*|win32*) source .venv/Scripts/activate ;; *) source .venv/bin/activate ;; esac && uv run pip-audit --skip-editable--ignore-vuln PYSEC-2024-277--ignore-vuln PYSEC-2026-89--ignore-vuln PYSEC-2026-97