From f2c33529df6c7d724277fb4329c3cf623444ca4a Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Tue, 11 Jun 2019 00:40:25 -0400 Subject: [PATCH] Add mypy check in CI --- Makefile | 4 +++- test_libs/pyspec/requirements-testing.txt | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f79b89dad..87439559f 100644 --- a/Makefile +++ b/Makefile @@ -49,7 +49,9 @@ citest: $(PY_SPEC_ALL_TARGETS) lint: $(PY_SPEC_ALL_TARGETS) cd $(PY_SPEC_DIR); . venv/bin/activate; \ - flake8 --ignore=E252,W504,W503 --max-line-length=120 ./eth2spec; + flake8 --ignore=E252,W504,W503 --max-line-length=120 ./eth2spec; \ + cd ./eth2spec; \ + mypy --follow-imports=silent --warn-unused-ignores --ignore-missing-imports --check-untyped-defs --disallow-incomplete-defs --disallow-untyped-defs --disallow-any-generics -p phase0 install_deposit_contract_test: $(PY_SPEC_ALL_TARGETS) cd $(DEPOSIT_CONTRACT_DIR); python3 -m venv venv; . venv/bin/activate; pip3 install -r requirements-testing.txt diff --git a/test_libs/pyspec/requirements-testing.txt b/test_libs/pyspec/requirements-testing.txt index 331d0fa28..1ae21a2f2 100644 --- a/test_libs/pyspec/requirements-testing.txt +++ b/test_libs/pyspec/requirements-testing.txt @@ -2,3 +2,4 @@ pytest>=3.6,<3.7 ../config_helpers flake8==3.7.7 +mypy==0.701