From 8404ec0d549e45dfb7047fa346d95b2554387b96 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Tue, 20 Jun 2023 18:26:29 -0500 Subject: [PATCH] add mypy to the development tools --- pyproject.toml | 6 +++++- requirements/requirements-dev.txt | 9 ++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 803aa8f..7c33e34 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,8 @@ dynamic = ["version"] [project.optional-dependencies] dev = ["flake8", "flake8-blind-except", "flake8-builtins", "flake8-docstrings", "flake8-executable", "flake8-fixme", - "flake8-isort", "flake8-logging-format", "flake8-mutable", "flake8-pyproject", "pip-tools", "setuptools-scm"] + "flake8-isort", "flake8-logging-format", "flake8-mutable", "flake8-pyproject", "mypy", "pip-tools", + "setuptools-scm"] [project.scripts] visualize-storage = "gp2040ce_bintools.storage:visualize" @@ -23,5 +24,8 @@ visualize-storage = "gp2040ce_bintools.storage:visualize" [tool.flake8] max-line-length = 120 +[tool.mypy] +ignore_missing_imports = true + [tool.setuptools_scm] write_to = "gp2040ce_bintools/_version.py" diff --git a/requirements/requirements-dev.txt b/requirements/requirements-dev.txt index 693ceee..0900a8d 100644 --- a/requirements/requirements-dev.txt +++ b/requirements/requirements-dev.txt @@ -43,6 +43,10 @@ isort==5.12.0 # via flake8-isort mccabe==0.7.0 # via flake8 +mypy==1.4.0 + # via gp2040ce-binary-tools (pyproject.toml) +mypy-extensions==1.0.0 + # via mypy packaging==23.1 # via # build @@ -67,9 +71,12 @@ tomli==2.0.1 # via # build # flake8-pyproject + # mypy # setuptools-scm typing-extensions==4.6.3 - # via setuptools-scm + # via + # mypy + # setuptools-scm wheel==0.40.0 # via pip-tools