DMYPY(1) | Mypy | DMYPY(1) |
dmypy - mypy daemon mode client
dmypy [OPTIONS...] COMMAND] [COMMAND OPTIONS ...]
Mypy can run as a long-running daemon (server) process allowing to perform type checking much faster, since program state cached from previous runs is kept in memory and doesn’t have to be read from the file system on each run. The server also uses finer-grained dependency tracking to reduce the amount of work that needs to be done.
If you have a large codebase to check, running mypy using the mypy daemon can be 10 or more times faster than the regular command-line mypy tool, especially if your workflow involves running mypy repeatedly after small edits – which is often a good idea, as this way you’ll find errors sooner.
Dmypy is a command-line client to send type-checking requests to the server.
Start a mypy daemon.
Runs a new mypy daemon, passing regular mypy flags to it. If --log-file is used, directs daemon stdout/stderr to FILE. --timeout specifies the server shutdown timeout in seconds.
Stop a mypy daemon.
Politely asks the currently running mypy daemon to go away.
Kill a mypy daemon.
Kills the process of the currently running mypy daemon.
Restart a mypy daemon.
Stops the existing and then runs a new mypy daemon, passing regular mypy flags to it. If --log-file is used, directs daemon stdout/stderr to FILE. --timeout specifies the server shutdown timeout in seconds.
Show a mypy daemon status.
If -v or --verbose is used, prints detailed status.
Run a mypy daemon in the foreground, passing regular mypy flags to it.
--timeout specifies the server shutdown timeout in seconds.
Check some files.
Tell the currently running mypy daemon to check some files. This requires the daemon to already be running.
Re-check the previous list of files, with optional modifications. This requires the daemon to already be running.
Check some files, (re)starting the daemon if necessary.
Hang for 100 seconds.
Full documentation is available online at: https://mypy.readthedocs.io/en/latest/mypy_daemon.html or locally at: /usr/share/doc/mypy/html (requires mypy-doc package).
Jukka Lehtosalo and contributors
February 24, 2023 |