From 4de10d49f97b8c66e4c563a07af3f0a7c25ca3ff Mon Sep 17 00:00:00 2001 From: Matt Savoie Date: Wed, 31 Jan 2024 10:12:48 -0700 Subject: [PATCH] Disable CI for datatree_ (#8688) Skips datatree_ CI Adds additional ignore to mypy Adds additional ignore to doctests Excludes xarray/datatree_ from all pre-commmit.ci Adds MINIFEST.in to skip datatree_ packaging --- .github/workflows/ci-additional.yaml | 3 ++- .pre-commit-config.yaml | 1 + MANIFEST.in | 1 + pyproject.toml | 5 ++++- 4 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 MANIFEST.in diff --git a/.github/workflows/ci-additional.yaml b/.github/workflows/ci-additional.yaml index 8e2560d910d..74b54ad55d6 100644 --- a/.github/workflows/ci-additional.yaml +++ b/.github/workflows/ci-additional.yaml @@ -79,7 +79,8 @@ jobs: # # If dependencies emit warnings we can't do anything about, add ignores to # `xarray/tests/__init__.py`. - python -m pytest --doctest-modules xarray --ignore xarray/tests -Werror + # [MHS, 01/25/2024] Skip datatree_ documentation remove after #8572 + python -m pytest --doctest-modules xarray --ignore xarray/tests --ignore xarray/datatree_ -Werror mypy: name: Mypy diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c889edc470f..deff3963d94 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,7 @@ # https://pre-commit.com/ ci: autoupdate_schedule: monthly +exclude: 'xarray/datatree_.*' repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.5.0 diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 00000000000..032b620f433 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +prune xarray/datatree_* diff --git a/pyproject.toml b/pyproject.toml index 26132031da1..0dce98ff61f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -85,7 +85,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_/.*\.py', +] files = "xarray" show_error_codes = true show_error_context = true