From e60495b2ce0518b6f646272c0d21c9ed605db7eb Mon Sep 17 00:00:00 2001 From: Tiara Rodney Date: Wed, 17 Jun 2026 14:03:46 +0200 Subject: [PATCH] chore: set up mypy strict checking and ship py.typed --- Pipfile | 1 + pyproject.toml | 13 +++++++++++++ src/tiararodney/sekft/py.typed | 0 3 files changed, 14 insertions(+) create mode 100644 src/tiararodney/sekft/py.typed diff --git a/Pipfile b/Pipfile index 08edb5c..fffe94e 100644 --- a/Pipfile +++ b/Pipfile @@ -12,6 +12,7 @@ name = "pypi" [dev-packages] tox = "*" pytest = "*" +mypy = "*" build = "*" twine = "*" setuptools-scm = "~=8.2.0" diff --git a/pyproject.toml b/pyproject.toml index fa22ee5..ae51a61 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,6 +59,9 @@ Git = "https://git.code.tiararodney.com/tiararodney/sekft" where = ["src"] namespaces = true +[tool.setuptools.package-data] +"tiararodney.sekft" = ["py.typed"] + [tool.pytest.ini_options] pythonpath = ["src", "../posix-sdc/src"] testpaths = ["tests"] @@ -70,6 +73,16 @@ markers = [ [tool.mypy] strict = true +mypy_path = "src" +explicit_package_bases = true +namespace_packages = true + +[[tool.mypy.overrides]] +module = [ + "torch.*", "transformers.*", "peft.*", "datasets.*", "bitsandbytes.*", + "tiararodney.posix_sdc.*", +] +ignore_missing_imports = true [tool.autopep8] max_line_length = 80 diff --git a/src/tiararodney/sekft/py.typed b/src/tiararodney/sekft/py.typed new file mode 100644 index 0000000..e69de29