Skip to content

Commit

Permalink
chore: update mypy configuration
Browse files Browse the repository at this point in the history
Set allow missing imports to True, eliminating the errors raised due to
missing stub files for certain imported third party packages.

Set pre-commit hook to also install types-setuptools to download extra
stub files.
  • Loading branch information
skellet0r committed Oct 2, 2021
1 parent a1f3a8e commit 63c98fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ repos:
rev: v0.910
hooks:
- id: mypy

additional_dependencies:
- "types-setuptools"

default_language_version:
python: python3.8
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ python_files = test_*.py
testpaths = tests
markers =
fuzzing: Run Hypothesis fuzz test suite (deselect with '-m "not fuzzing"')

[tool:mypy]
ignore_missing_imports = True

0 comments on commit 63c98fd

Please sign in to comment.