File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 42
42
if : ${{ env.python_files != '' }}
43
43
run : |
44
44
echo "Running ty on changed files: ${{ env.python_files }}"
45
- uv run ty check --output-format concise --python-version 3.12 --exclude "**/tests/**" --exclude "**/codegen_tests/**" ${{ env.python_files }}
45
+ # Filter out test files for type checking
46
+ src_files=()
47
+ for file in ${{ env.python_files }}; do
48
+ if [[ ! $file == *"/tests/"* && ! $file == *"/codegen_tests/"* ]]; then
49
+ src_files+=("${file}")
50
+ fi
51
+ done
52
+
53
+ # Only run type checking if there are source files to check
54
+ if [ ${#src_files[@]} -gt 0 ]; then
55
+ echo "Running ty on source files: ${src_files[*]}"
56
+ uv run ty check --output-format concise --python-version 3.12 ${src_files[@]}
57
+ else
58
+ echo "No source files to check, skipping ty"
59
+ fi
You can’t perform that action at this time.
0 commit comments