Skip to content

Commit 4de10d4

Browse files
committed
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
1 parent b9b8494 commit 4de10d4

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.github/workflows/ci-additional.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ jobs:
7979
#
8080
# If dependencies emit warnings we can't do anything about, add ignores to
8181
# `xarray/tests/__init__.py`.
82-
python -m pytest --doctest-modules xarray --ignore xarray/tests -Werror
82+
# [MHS, 01/25/2024] Skip datatree_ documentation remove after #8572
83+
python -m pytest --doctest-modules xarray --ignore xarray/tests --ignore xarray/datatree_ -Werror
8384
8485
mypy:
8586
name: Mypy

.pre-commit-config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# https://pre-commit.com/
22
ci:
33
autoupdate_schedule: monthly
4+
exclude: 'xarray/datatree_.*'
45
repos:
56
- repo: https://github.com/pre-commit/pre-commit-hooks
67
rev: v4.5.0

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
prune xarray/datatree_*

pyproject.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ exclude_lines = ["pragma: no cover", "if TYPE_CHECKING"]
8585

8686
[tool.mypy]
8787
enable_error_code = "redundant-self"
88-
exclude = 'xarray/util/generate_.*\.py'
88+
exclude = [
89+
'xarray/util/generate_.*\.py',
90+
'xarray/datatree_/.*\.py',
91+
]
8992
files = "xarray"
9093
show_error_codes = true
9194
show_error_context = true

0 commit comments

Comments
 (0)