From 6f668bb94f7af39d00c529ee818e0b1f89f7b33e Mon Sep 17 00:00:00 2001 From: Mike Manger Date: Thu, 5 Dec 2024 14:53:26 +0000 Subject: [PATCH 1/2] Move mypy config to pyproject.toml --- .mypy.ini | 13 ------------- dev-requirements.txt | 3 ++- pyproject.toml | 12 ++++++++++++ 3 files changed, 14 insertions(+), 14 deletions(-) delete mode 100644 .mypy.ini diff --git a/.mypy.ini b/.mypy.ini deleted file mode 100644 index cb94327..0000000 --- a/.mypy.ini +++ /dev/null @@ -1,13 +0,0 @@ -[mypy] -warn_unused_ignores = True -warn_no_return = True -warn_unreachable = True - -[mypy-django.*] -ignore_missing_imports = True - -[mypy-python_http_client.exceptions.*] -ignore_missing_imports = True - -[mypy-sendgrid.*] -ignore_missing_imports = True diff --git a/dev-requirements.txt b/dev-requirements.txt index 58c9ccf..af7f006 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -6,8 +6,9 @@ importlib-metadata==3.6.0 isort==5.7.0 jedi==0.10.2 mock==2.0.0 -mypy==0.920 +mypy==1.13 pytest==7.1.3 pytest-cov==4.1.0 tox==4.23.2 twine==3.3.0 +types-python-http-client \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index f1c3e77..f283930 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,6 +49,18 @@ line_length = 88 profile = "black" multi_line_output = 3 +[tool.mypy] +warn_unused_ignores = true +warn_no_return = true +warn_unreachable = true + +[[tool.mypy.overrides]] +module = [ + "django.*", + "sendgrid.*" +] +ignore_missing_imports = true + [tool.setuptools.dynamic] version = {attr = "sendgrid_backend.version.__version__"} From 6ae85bde28705625485e9130314a0d82102685b5 Mon Sep 17 00:00:00 2001 From: Mike Manger Date: Thu, 5 Dec 2024 15:19:14 +0000 Subject: [PATCH 2/2] Remove uneeded MANIFEST.in file (files already included by setuptools --- MANIFEST.in | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index bb910eb..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1,3 +0,0 @@ -include README.md -include LICENSE -include requirements.txt