mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-24 02:24:23 -05:00
tweak mypy config (#9368)
* tweak mypy config * add types-click to pre-commit
This commit is contained in:
@@ -55,8 +55,7 @@ jobs:
|
||||
|
||||
- name: Lint source with mypy
|
||||
run: |
|
||||
mypy --exclude config.py tests
|
||||
mypy chia
|
||||
mypy
|
||||
|
||||
- name: Build source distribution
|
||||
run: |
|
||||
|
||||
@@ -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
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user