From 47dd5f913de27595f14ed97ce0cecbd560cf93f6 Mon Sep 17 00:00:00 2001 From: Alex Ruddick Date: Wed, 7 Jun 2023 11:56:45 -0500 Subject: [PATCH] Re-enable mypy --- .github/workflows/python-package.yml | 6 +++--- setup.cfg | 3 +++ setup.py | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 373606c..a9a4810 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -46,9 +46,9 @@ jobs: - name: Lint with ruff run: | ruff . - # - name: Check types with mypy - # run: | - # mypy watlow + - name: Check types with mypy + run: | + mypy watlow - name: Pytest run: | pytest diff --git a/setup.cfg b/setup.cfg index c86a4d1..6642632 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,8 @@ [mypy] check_untyped_defs = True +[mypy-pymodbus.*] +ignore_missing_imports = True + [tool:pytest] addopts = --cov=watlow diff --git a/setup.py b/setup.py index a7d4c25..5ff9019 100644 --- a/setup.py +++ b/setup.py @@ -35,6 +35,7 @@ 'pytest-cov', 'pytest-asyncio', 'ruff==0.0.271', + 'types-pyserial', ], }, entry_points={