Skip to content

Commit

Permalink
Update options section in README.md (#81)
Browse files Browse the repository at this point in the history
Add description of `--mypy-only-local-stub` option included with #51 / 9384222.
  • Loading branch information
zero323 authored Oct 15, 2021
1 parent 0d790e7 commit a2d4add
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a2d4add

Please sign in to comment.