mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-14 23:12:37 +00:00
Move crewai.a2a into lib/crewai-a2a as its own workspace package, importable as crewai_a2a. The crewai[a2a] extra now pulls in crewai-a2a, which owns a2a-sdk, httpx-auth, httpx-sse, and aiocache. crewai.a2a stays importable. Its __init__ is a compat shim that installs a meta-path finder routing crewai.a2a.* to crewai_a2a.*, so existing user code keeps working untouched. a2a tests and cassettes moved alongside the package under lib/crewai-a2a/tests/. Added that path to the mypy and ruff per-file-ignores lists to match the other test dirs.
42 lines
1.5 KiB
YAML
42 lines
1.5 KiB
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: ruff
|
|
name: ruff
|
|
entry: bash -c 'source .venv/bin/activate && uv run ruff check --config pyproject.toml "$@"' --
|
|
language: system
|
|
pass_filenames: true
|
|
types: [python]
|
|
- id: ruff-format
|
|
name: ruff-format
|
|
entry: bash -c 'source .venv/bin/activate && uv run ruff format --config pyproject.toml "$@"' --
|
|
language: system
|
|
pass_filenames: true
|
|
types: [python]
|
|
- id: mypy
|
|
name: mypy
|
|
entry: bash -c 'source .venv/bin/activate && uv run mypy --config-file pyproject.toml "$@"' --
|
|
language: system
|
|
pass_filenames: true
|
|
types: [python]
|
|
exclude: ^(lib/crewai/src/crewai/cli/templates/|lib/crewai/tests/|lib/crewai-tools/tests/|lib/crewai-files/tests/|lib/crewai-a2a/tests/)
|
|
- repo: https://github.com/astral-sh/uv-pre-commit
|
|
rev: 0.11.3
|
|
hooks:
|
|
- id: uv-lock
|
|
- repo: local
|
|
hooks:
|
|
- id: pip-audit
|
|
name: pip-audit
|
|
entry: bash -c 'source .venv/bin/activate && uv run pip-audit --skip-editable --ignore-vuln CVE-2025-69872 --ignore-vuln CVE-2026-25645 --ignore-vuln CVE-2026-27448 --ignore-vuln CVE-2026-27459 --ignore-vuln PYSEC-2023-235' --
|
|
language: system
|
|
pass_filenames: false
|
|
stages: [pre-push, manual]
|
|
- repo: https://github.com/commitizen-tools/commitizen
|
|
rev: v4.10.1
|
|
hooks:
|
|
- id: commitizen
|
|
- id: commitizen-branch
|
|
stages: [ pre-push ]
|
|
|