Additional daemon flags

  • —status-file FILE
  • Use FILE as the status file for storing daemon runtime state. This isnormally a JSON file that contains information about daemon process andconnection. The default path is .dmypy.json in the current workingdirectory.
  • —log-file FILE
  • Direct daemon stdout/stderr to FILE. This is useful for debugging daemoncrashes, since the server traceback is not always printed by the client.This is available for the start, restart, and run commands.
  • —timeout TIMEOUT
  • Automatically shut down server after TIMEOUT seconds of inactivity.This is available for the start, restart, and run commands.
  • —update FILE
  • Re-check FILE, or add it to the set of files beingchecked (and check it). This option may be repeated, and it’s only available forthe recheck command. By default, mypy finds and checks all files changedsince the previous run and files that depend on them. However, if you use this option(and/or —remove), mypy assumes that only the explicitlyspecified files have changed. This is only useful tospeed up mypy if you type check a very large number of files, and use anexternal, fast file system watcher, such as watchman orwatchdog, to determine which files got edited or deleted.Note: This option is never required and is only available forperformance tuning.
  • —remove FILE
  • Remove FILE from the set of files being checked. This option may berepeated. This is only available for therecheck command. See —update above for when this may be useful.Note: This option is never required and is only available for performancetuning.
  • —fswatcher-dump-file FILE
  • Collect information about the current internal file state. This isonly available for the status command. This will dump JSON toFILE in the format {path: [modificationtime, size, content_hash]}. This is useful for debugging the built-in filesystem watcher. _Note: This is an internal flag and the format maychange.
  • —perf-stats-file FILE
  • Write performance profiling information to FILE. This is only availablefor the check, recheck, and run commands.