tweak mypy config (#9368)

* tweak mypy config

* add types-click to pre-commit
This commit is contained in:
Kyle Altendorf
2021-11-24 13:06:39 -08:00
committed by GitHub
parent b89d958108
commit bf01b58cb4
4 changed files with 5 additions and 4 deletions
+1 -2
View File
@@ -55,8 +55,7 @@ jobs:
- name: Lint source with mypy
run: |
mypy --exclude config.py tests
mypy chia
mypy
- name: Build source distribution
run: |
+1 -1
View File
@@ -28,7 +28,7 @@ repos:
rev: v0.910
hooks:
- id: mypy
additional_dependencies: [types-aiofiles, types-setuptools, types-PyYAML]
additional_dependencies: [types-aiofiles, types-click, types-setuptools, types-PyYAML]
# This intentionally counters the settings in mypy.ini to allow a loose local
# check and a strict CI check. This difference may or may not be retained long
# term.
+1 -1
View File
@@ -41,7 +41,7 @@ def monkey_patch_click() -> None:
import click.core
click.core._verify_python3_env = lambda *args, **kwargs: 0 # type: ignore
click.core._verify_python3_env = lambda *args, **kwargs: 0 # type: ignore[attr-defined]
@click.group(
+2
View File
@@ -1,5 +1,7 @@
[mypy]
files = benchmarks,build_scripts,chia,tests,*.py
ignore_missing_imports = True
show_error_codes = True
warn_unused_ignores = True
[mypy - lib]