Start daemon (it must not already be running). This is where mypy flags are set from the command line. Setting flags is a bit awkward; you have to use e.g.: dmypy start -- --strict since we don't want to duplicate mypy's huge list of flags.
(args: argparse.Namespace)
| 302 | |
| 303 | @action(start_parser) |
| 304 | def do_start(args: argparse.Namespace) -> None: |
| 305 | """Start daemon (it must not already be running). |
| 306 | |
| 307 | This is where mypy flags are set from the command line. |
| 308 | |
| 309 | Setting flags is a bit awkward; you have to use e.g.: |
| 310 | |
| 311 | dmypy start -- --strict |
| 312 | |
| 313 | since we don't want to duplicate mypy's huge list of flags. |
| 314 | """ |
| 315 | try: |
| 316 | get_status(args.status_file) |
| 317 | except BadStatus: |
| 318 | # Bad or missing status file or dead process; good to start. |
| 319 | pass |
| 320 | else: |
| 321 | fail("Daemon is still alive") |
| 322 | start_server(args) |
| 323 | |
| 324 | |
| 325 | @action(restart_parser) |
nothing calls this directly
no test coverage detected
searching dependent graphs…