diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 1d08910..d4548e9 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -10,3 +10,6 @@ jobs: call-ruff-workflow: # Docs: https://github.com/ASFHyP3/actions uses: ASFHyP3/actions/.github/workflows/reusable-ruff.yml@v0.12.0 + + call-mypy-workflow: + uses: ASFHyP3/actions/.github/workflows/reusable-mypy.yml@v0.14.0 diff --git a/environment.yml b/environment.yml index 972fc59..7f18bb0 100644 --- a/environment.yml +++ b/environment.yml @@ -11,6 +11,8 @@ dependencies: # For packaging, and testing - python-build - ruff + - mypy + - types-requests - pillow - pytest - pytest-console-scripts diff --git a/pyproject.toml b/pyproject.toml index fd20d05..c77eb21 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -91,3 +91,11 @@ convention = "google" [tool.ruff.lint.isort] case-sensitive = true lines-after-imports = 2 + +[tool.mypy] +python_version = "3.9" +warn_redundant_casts = true +warn_unused_ignores = true +warn_unreachable = true +strict_equality = true +check_untyped_defs = true