Daemon client commands
While dmypy run
is sufficient for most uses, some workflows(ones using remote caching, perhaps),require more precise control over the lifetime of the daemon process:
dmypy stop
stops the daemon.dmypy start — <flags>
starts the daemon but does not check any files.You can use almost arbitrary mypy flags after—
.dmypy restart — <flags>
restarts the daemon. The flags are the sameas withdmypy start
. This is equivalent to a stop command followedby a start.- Use
dmypy run —timeout SECONDS — <flags>
(orstart
orrestart
) to automaticallyshut down the daemon after inactivity. By default, the daemon runsuntil it’s explicitly stopped. dmypy check <files>
checks a set of files using an alreadyrunning daemon.dmypy recheck
checks the same set of files as the most recentcheck
orrecheck
command. (You can also use the—update
and—remove
options to alter the set of files, and to definewhich files should be processed.)dmypy status
checks whether a daemon is running. It prints adiagnostic and exits with0
if there is a running daemon.
Use dmypy —help
for help on additional commands and command-lineoptions not discussed here, and dmypy <command> —help
for help oncommand-specific options.