Skip to content

Commit a2d4add

Browse files
authored
Update options section in README.md (#81)
Add description of `--mypy-only-local-stub` option included with #51 / 9384222.
1 parent 0d790e7 commit a2d4add

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,12 @@ mypy-tests:
167167
Base directory for tests to use
168168
--mypy-ini-file=MYPY_INI_FILE
169169
Which .ini file to use as a default config for tests
170-
--mypy-same-process
171-
Now, to help with various issues in django-stubs, it runs every single test in the subprocess mypy call.
172-
Some debuggers cannot attach to subprocess, so enable this flag to make mypy check happen in the same process.
173-
(Could cause cache issues)
170+
--mypy-same-process Run in the same process. Useful for debugging, will create problems with import cache
171+
--mypy-extension-hook=MYPY_EXTENSION_HOOK
172+
Fully qualified path to the extension hook function, in case you need custom yaml keys. Has to be top-level.
173+
--mypy-only-local-stub
174+
mypy will ignore errors from site-packages
175+
174176
```
175177
176178
## Further reading

0 commit comments

Comments
 (0)