diff options
author | Nipunn Koorapati <nipunn1313@gmail.com> | 2021-08-09 12:49:48 -0700 |
---|---|---|
committer | Nipunn Koorapati <nipunn1313@gmail.com> | 2021-08-09 16:47:02 -0700 |
commit | 2aab462b7f30de804aefefceb5768f37ff0b5131 (patch) | |
tree | 4a4e7e94d0e4972dc93e0aac2ec10da5b55a6e5b /.pre-commit-config.yaml | |
parent | 618f7e7528705af252ef666fe5d35fd9e8091c13 (diff) | |
download | pip-2aab462b7f30de804aefefceb5768f37ff0b5131.tar.gz |
Bump mypy to 0.910
This notably gets us on a version of mypy that uses modular typeshed:
https://mypy-lang.blogspot.com/2021/05/the-upcoming-switch-to-modular-typeshed.html
which allows us to have finer control over what version of stubs we pull
in from typeshed. Also contains other routine improvements to mypy.
Required a few minor typing changes.
Add flag --show-error-code so errors look like this
src/pip/_internal/network/auth.py:70: error: Incompatible types in assignment
(expression has type "None", variable has type Module) [assignment]
rather than
src/pip/_internal/network/auth.py:70: error: Incompatible types in assignment
(expression has type "None", variable has type Module)
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r-- | .pre-commit-config.yaml | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 40b29c39f..90b22b9b7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -51,12 +51,17 @@ repos: files: \.py$ - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.800 + rev: v0.910 hooks: - id: mypy exclude: tests - args: ["--pretty"] - additional_dependencies: ['nox==2020.12.31'] + args: ["--pretty", "--show-error-codes"] + additional_dependencies: [ + 'keyring==23.0.1', + 'nox==2020.12.31', + 'types-docutils==0.1.8', + 'types-six==0.1.9', + ] - repo: https://github.com/pre-commit/pygrep-hooks rev: v1.7.0 |