explicitly call out additional_dependencies

This commit is contained in:
Anthony Sottile 2020-01-08 08:19:50 -08:00
parent 6d1dbadef1
commit eef73e213c

View File

@ -27,3 +27,13 @@ To change the arguments, override the `args` as follows:
- id: mypy - id: mypy
args: [--no-strict-optional, --ignore-missing-imports] args: [--no-strict-optional, --ignore-missing-imports]
``` ```
Because `pre-commit` runs `mypy` from an isolated virtualenv (without your
dependencies) you may also find it useful to add the typed dependencies to
`additional_dependencies` so `mypy` can better perform dynamic analysis:
```yaml
hooks:
- id: mypy
additional_dependencies: [tokenize-rt==3.2.0]
```