From dd1fc2c56eaf5e82adaf61196b95b4066c7af3e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Mon, 16 Mar 2020 21:02:14 +0000 Subject: Add mypy to continuous integration. --- .travis.yml | 1 + setup.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index fdc8395..96011ac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,7 @@ install: script: - py.test + - mypy glucometerutils - python setup.py bdist_wheel - pip install ./dist/glucometerutils-*.whl - if [[ $PRE_COMMIT ]]; then pre-commit install; pre-commit run --all-files; fi diff --git a/setup.py b/setup.py index 3ac4a8f..441218d 100644 --- a/setup.py +++ b/setup.py @@ -70,7 +70,7 @@ setup( "sdcodefree": ["construct", "pyserial"], "td4277": ["construct", "pyserial", "hidapi"], # Development and testing dependencies - "dev": test_required + ["pre-commit"], + "dev": test_required + ["pre-commit", "mypy"], }, entry_points={"console_scripts": ["glucometer=glucometerutils.glucometer:main"]}, cmdclass={"test": PyTestCommand,}, -- cgit v1.2.3