From a6756e8d5d3674300f8a5a9ee7d68987bd5bae3a Mon Sep 17 00:00:00 2001 From: Florian Frantzen Date: Thu, 1 Feb 2024 09:28:33 +0100 Subject: [PATCH 1/2] mypy: Ignore untyped imports --- pyproject.toml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7dad767..b889384 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -99,18 +99,8 @@ include = [ warn_redundant_casts = true warn_unused_ignores = true show_error_codes = true +disable_error_code = ["import-untyped"] plugins = "numpy.typing.mypy_plugin" -[[tool.mypy.overrides]] -module = [ - "karateclub.*", - "networkx.*", - "pyrandwalk.*", - "scipy.*", - "sklearn.*", - "toponetx.*", -] -ignore_missing_imports = true - [tool.pytest.ini_options] addopts = "--capture=no" From 18484941ad616a46e7665d55e4bbea36a3f13b2e Mon Sep 17 00:00:00 2001 From: Florian Frantzen Date: Thu, 1 Feb 2024 09:37:38 +0100 Subject: [PATCH 2/2] Add missing dependency for `pyrandwalk` --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index b889384..0b8f937 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,6 +28,7 @@ dependencies=[ "numpy", "karateclub @ git+https://github.com/benedekrozemberczki/karateclub@d35e05526455599688f1c4dd92e397cf92316ae4", "networkx", + "pyrandwalk", "scipy < 1.12", # scipy 1.12 removed scipy.errstate, which networkx < 3.0 depends on "toponetx @ git+https://github.com/pyt-team/TopoNetX.git", ]