来源:Mypy
浏览 439
扫码
分享
2020-04-13 20:29:52
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.
当前内容版权归
Mypy 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问
Mypy .