Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
chore: relax mypy configuration and exclude tests from CI (#3452)
Greyson LaLonde610c1f70c0cd
diff --git a/.github/workflows/type-checker.yml b/.github/workflows/type-checker.ymlindex e5af4ba9e..725a598b3 100644--- a/.github/workflows/type-checker.yml+++ b/.github/workflows/type-checker.yml@@ -41,18 +41,18 @@ jobs:echo "Fetching changed files..."git diff --name-only --diff-filter=ACMRT origin/${{ github.base_ref }}...HEAD -- '*.py' > changed_files.txt- # Filter for files in src/ and tests/ directories- grep -E "^(src/|tests/)" changed_files.txt > filtered_changed_files.txt || true+ # Filter for files in src/ directory only (excluding tests/)+ grep -E "^src/" changed_files.txt > filtered_changed_files.txt || true# Check if there are any changed filesif [ -s filtered_changed_files.txt ]; then- echo "Changed Python files in src/ and tests/:"+ echo "Changed Python files in src/:"cat filtered_changed_files.txtecho "has_changes=true" >> $GITHUB_OUTPUT# Convert newlines to spaces for mypy commandecho "files=$(cat filtered_changed_files.txt | tr '\n' ' ')" >> $GITHUB_OUTPUTelse- echo "No Python files changed in src/ or tests/"+ echo "No Python files changed in src/"echo "has_changes=false" >> $GITHUB_OUTPUTfi@@ -64,7 +64,7 @@ jobs:- name: No files to checkif: steps.changed-files.outputs.has_changes == 'false'- run: echo "No Python files in src/ or tests/ were modified - skipping type checks"+ run: echo "No Python files in src/ were modified - skipping type checks"# Summary job to provide single status for branch protectiontype-checker:diff --git a/pyproject.toml b/pyproject.tomlindex 8bfd7d678..c482efec7 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -122,8 +122,7 @@ select = [][tool.mypy]-strict = true-exclude = ["src/crewai/cli/templates"]+exclude = ["src/crewai/cli/templates", "tests"][tool.bandit]exclude_dirs = ["src/crewai/cli/templates"]