File size: 351 Bytes
016b413
 
 
 
 
b4ff56e
 
016b413
 
 
 
 
 
 
 
 
 
b4ff56e
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# Cross-platform pytest runner for pre-commit
# Uses uv if available, otherwise falls back to pytest

if command -v uv >/dev/null 2>&1; then
    # Sync dependencies before running tests
    uv sync
    uv run pytest "$@"
else
    echo "Warning: uv not found, using system pytest (may have missing dependencies)"
    pytest "$@"
fi