logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

dmypy - mypy daemon mode client

Author

       Jukka Lehtosalo and contributors

                                                  Feb 24, 2025                                          DMYPY(1)

Commands

start[--log-fileFILE][--timeoutTIMEOUT]ARGS...
       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
       Stop a mypy daemon.

       Politely asks the currently running mypy daemon to go away.

   kill
       Kill a mypy daemon.

       Kills the process of the currently running mypy daemon.

   restart[--log-fileFILE][--timeoutTIMEOUT]ARGS...
       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.

   status[-v]
       Show a mypy daemon status.

       If -v or --verbose is used, prints detailed status.

   daemon[--timeoutTIMEOUT]ARGS...
       Run a mypy daemon in the foreground, passing regular mypy flags to it.

       --timeout specifies the server shutdown timeout in seconds.

   check[-v][--junit-xmlJUNIT_XML][--perf-stats-filePERF_STATS_FILE]FILE[FILE...]
       Check some files.

       Tell  the  currently  running  mypy  daemon  to  check some files. This requires the daemon to already be
       running.

       -v, --verbose
              Print detailed status

       --junit-xmlJUNIT_XML
              Write junit.xml to the given file

       --perf-stats-filePERF_STATS_FILE
              Write telemetry information to the given file

   recheck[-v][--junit-xmlJUNIT_XML][--perf-stats-filePERF_STATS_FILE][--updateFILE[FILE...]][--removeFILE[FILE...]]
       Re-check the previous list of files, with optional modifications. This requires the daemon to already  be
       running.

       -v, --verbose
              Print detailed status

       --junit-xmlJUNIT_XML
              Write junit.xml to the given file

       --perf-stats-filePERF_STATS_FILE
              Write telemetry information to the given file

   run[-v][--junit-xmlJUNIT_XML][--perf-stats-filePERF_STATS_FILE][--timeoutTIMEOUT][--log-fileFILE]ARGS...
       Check some files, (re)starting the daemon if necessary.

       -v, --verbose
              Print detailed status

       --junit-xmlJUNIT_XML
              Write junit.xml to the given file

       --perf-stats-filePERF_STATS_FILE
              Write telemetry information to the given file

       --timeoutTIMEOUT
              Server shutdown timeout (in seconds)

       --log-fileFILE
              Direct daemon stdout/stderr to FILEhang
       Hang for 100 seconds.

Description

       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.

Name

       dmypy - mypy daemon mode client

Options

-h,--help
              Show a help message and exit.

       --status-fileSTATUS_FILE
              Status file to retrieve daemon details to.

       -V,--version
              Show program’s version number and exit.

See Also

mypy(1)

       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).

Synopsis

dmypy [OPTIONS...] COMMAND] [COMMAND OPTIONS ...]

See Also