diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index e26086b..c643602 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -32,3 +32,8 @@ jobs: - name: Test with pylint run: | poetry run pylint asfpy/*.py test/*.py + - name: Test with mypy + if: always() + run: | + poetry run python -m pip install types-PyYAML types-requests + poetry run mypy --ignore-missing-imports . # recursive by default diff --git a/pyproject.toml b/pyproject.toml index fffcb80..3968ca4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,6 +30,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry.group.dev.dependencies] pytest = "*" pylint = "*" +mypy = "*" [tool.poetry.extras] ldap = ["python-ldap", "passlib"]