We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b9623b commit f2f339dCopy full SHA for f2f339d
1 file changed
.devcontainer/scripts/type-check
@@ -4,5 +4,15 @@ set -e
4
5
cd "$(dirname "$0")/../.."
6
7
-echo "Be patient, may take several minutes..."
8
-mypy --cache-dir=.mypy_cache custom_components/pun_sensor
+# Check if dmypy daemon is running
+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