File size: 661 Bytes
b5998ff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash
# Run mypy type checking on the codebase
set -e

echo "🔍 Running mypy type checks..."

# Run mypy on key Python files
mypy \
    --python-version 3.8 \
    --warn-return-any \
    --warn-unused-configs \
    --ignore-missing-imports \
    --strict-optional \
    --warn-redundant-casts \
    --warn-unused-ignores \
    --show-error-codes \
    --show-column-numbers \
    test_model.py \
    evaluate_model.py \
    inference_api.py \
    merge_simple.py \
    train_local.py \
    train_simple_nobnb.py \
    src/ \
    stack/ \
    || {
        echo "❌ mypy found type errors"
        exit 1
    }

echo "✅ mypy type check passed"