File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -41,18 +41,18 @@ jobs:
41
41
echo "Fetching changed files..."
42
42
git diff --name-only --diff-filter=ACMRT origin/${{ github.base_ref }}...HEAD -- '*.py' > changed_files.txt
43
43
44
- # Filter for files in src/ and tests/ directories
45
- grep -E "^( src/|tests/) " changed_files.txt > filtered_changed_files.txt || true
44
+ # Filter for files in src/ directory only (excluding tests/)
45
+ grep -E "^src/" changed_files.txt > filtered_changed_files.txt || true
46
46
47
47
# Check if there are any changed files
48
48
if [ -s filtered_changed_files.txt ]; then
49
- echo "Changed Python files in src/ and tests/ :"
49
+ echo "Changed Python files in src/:"
50
50
cat filtered_changed_files.txt
51
51
echo "has_changes=true" >> $GITHUB_OUTPUT
52
52
# Convert newlines to spaces for mypy command
53
53
echo "files=$(cat filtered_changed_files.txt | tr '\n' ' ')" >> $GITHUB_OUTPUT
54
54
else
55
- echo "No Python files changed in src/ or tests/ "
55
+ echo "No Python files changed in src/"
56
56
echo "has_changes=false" >> $GITHUB_OUTPUT
57
57
fi
58
58
64
64
65
65
- name : No files to check
66
66
if : steps.changed-files.outputs.has_changes == 'false'
67
- run : echo "No Python files in src/ or tests/ were modified - skipping type checks"
67
+ run : echo "No Python files in src/ were modified - skipping type checks"
68
68
69
69
# Summary job to provide single status for branch protection
70
70
type-checker :
Original file line number Diff line number Diff line change @@ -122,8 +122,7 @@ select = [
122
122
]
123
123
124
124
[tool .mypy ]
125
- strict = true
126
- exclude = [" src/crewai/cli/templates" ]
125
+ exclude = [" src/crewai/cli/templates" , " tests" ]
127
126
128
127
[tool .bandit ]
129
128
exclude_dirs = [" src/crewai/cli/templates" ]
You can’t perform that action at this time.
0 commit comments