Skip to content

Commit f2f339d

Browse files
committed
Usa il più rapido dmypy anziché mypy
1 parent 3b9623b commit f2f339d

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.devcontainer/scripts/type-check

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,15 @@ set -e
44

55
cd "$(dirname "$0")/../.."
66

7-
echo "Be patient, may take several minutes..."
8-
mypy --cache-dir=.mypy_cache custom_components/pun_sensor
7+
# Check if dmypy daemon is running
8+
if ! dmypy status &>/dev/null; then
9+
# dmypy daemon not running, starting...
10+
dmypy start
11+
echo "Be patient, running 'dmypy' the first time may take several minutes..."
12+
else
13+
# dmypy daemon is already running
14+
echo "Running 'dmypy'..."
15+
fi
16+
17+
# Run dmypy check
18+
dmypy check custom_components/pun_sensor

0 commit comments

Comments
 (0)