From a2d4adde12b0024e62f2e1661fd0dd5abb4f9191 Mon Sep 17 00:00:00 2001 From: Maciej <1554276+zero323@users.noreply.github.com> Date: Fri, 15 Oct 2021 18:50:23 +0200 Subject: [PATCH] Update options section in README.md (#81) Add description of `--mypy-only-local-stub` option included with #51 / 9384222a9ec6698a53f91399a4e0988f376bcda. --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e315dd6..9db3397 100644 --- a/README.md +++ b/README.md @@ -167,10 +167,12 @@ mypy-tests: Base directory for tests to use --mypy-ini-file=MYPY_INI_FILE Which .ini file to use as a default config for tests - --mypy-same-process - Now, to help with various issues in django-stubs, it runs every single test in the subprocess mypy call. - Some debuggers cannot attach to subprocess, so enable this flag to make mypy check happen in the same process. - (Could cause cache issues) + --mypy-same-process Run in the same process. Useful for debugging, will create problems with import cache + --mypy-extension-hook=MYPY_EXTENSION_HOOK + Fully qualified path to the extension hook function, in case you need custom yaml keys. Has to be top-level. + --mypy-only-local-stub + mypy will ignore errors from site-packages + ``` ## Further reading