From 72acef2ec9a13ce9a0ef9cb3d7951928ee667774 Mon Sep 17 00:00:00 2001 From: Maximilian Roos Date: Fri, 12 Jul 2024 10:09:55 -0700 Subject: [PATCH] Allow mypy to run in vscode Seems to require adding an exclude for `build` and an `__init__.py` file in the `properties` directory... --- properties/__init__.py | 0 pyproject.toml | 1 + 2 files changed, 1 insertion(+) create mode 100644 properties/__init__.py diff --git a/properties/__init__.py b/properties/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/pyproject.toml b/pyproject.toml index 2ada0c1c171..4704751b445 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -87,6 +87,7 @@ exclude_lines = ["pragma: no cover", "if TYPE_CHECKING"] [tool.mypy] enable_error_code = "redundant-self" exclude = [ + 'build', 'xarray/util/generate_.*\.py', 'xarray/datatree_/doc/.*\.py', ]