diff --git a/pyproject.toml b/pyproject.toml index 75fd1e19521..99399a2cce5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -86,7 +86,10 @@ exclude_lines = ["pragma: no cover", "if TYPE_CHECKING"] [tool.mypy] enable_error_code = "redundant-self" -exclude = 'xarray/util/generate_.*\.py' +exclude = [ + 'xarray/util/generate_.*\.py', + 'xarray/datatree_/doc/.*\.py', +] files = "xarray" show_error_codes = true show_error_context = true