Skip to content

Commit

Permalink
More idiomatic mypy configuration (#6022)
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky authored Mar 30, 2022
1 parent 852d5f5 commit e6911d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,16 @@ repos:
rev: v0.942
hooks:
- id: mypy
args:
- --ignore-missing-imports
# Silence errors about Python 3.9-style delayed type annotations on Python 3.8
- --python-version
- "3.9"
# Override default --ignore-missing-imports
args: []
additional_dependencies:
# Type stubs
- types-docutils
- types-requests
- types-paramiko
- types-PyYAML
- types-psutil
- types-setuptools
# Typed libraries
- numpy
- dask
Expand Down
5 changes: 5 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,8 @@ timeout_method = thread
# This should not be reduced; Windows CI has been observed to be occasionally
# exceptionally slow.
timeout = 300

[mypy]
# Silence errors about Python 3.9-style delayed type annotations on Python 3.8
python_version = 3.9
ignore_missing_imports = true

0 comments on commit e6911d9

Please sign in to comment.