summaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2021-01-01 09:55:06 -0800
committerJon Dufresne <jon.dufresne@gmail.com>2021-02-19 05:47:55 -0800
commit7ffd0ca13e8cfca7e83fdcf8264ff011962f5c37 (patch)
tree01da11f03fb929760dcb4a90639058ff138870f6 /.pre-commit-config.yaml
parent32a29563af4bb01db5c8d00de83ee94318fd7de2 (diff)
downloadpip-7ffd0ca13e8cfca7e83fdcf8264ff011962f5c37.tar.gz
Complete typing of noxfile.py
Allows removing a "mypy: disallow-untyped-defs=False" comment. To workaround a mypy bug, map(os.path.basename, distribution_files) was changed to use a generator expression. See: https://github.com/python/mypy/issues/9864 To verify correct usage of the nox API, it is now a dependency during pre-commit mypy runs. The mypy configuration "follow_imports = silent" allowed erroneous code to pass, so it has been removed. Now, all imports must be available during type.
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 164de60b0..7b06692b2 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -74,6 +74,7 @@ repos:
- id: mypy
exclude: docs|tests
args: ["--pretty"]
+ additional_dependencies: ['nox==2020.12.31']
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.7.0