Skip to content

Commit 0b0b8f6

Browse files
authored
move coverage to pyproject.toml and exclude typechecking things (#7102)
1 parent 2c43663 commit 0b0b8f6

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

.coveragerc

Lines changed: 0 additions & 7 deletions
This file was deleted.

pyproject.toml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
[build-system]
2+
build-backend = "setuptools.build_meta"
23
requires = [
3-
"setuptools>=42",
4-
"setuptools-scm[toml]>=3.4",
5-
"setuptools-scm-git-archive",
4+
"setuptools>=42",
5+
"setuptools-scm[toml]>=3.4",
6+
"setuptools-scm-git-archive",
67
]
7-
build-backend = "setuptools.build_meta"
88

99
[tool.setuptools_scm]
1010
fallback_version = "999"
11+
12+
[tool.coverage.run]
13+
exclude_lines = ["pragma: no cover", "if TYPE_CHECKING"]
14+
omit = [
15+
"*/xarray/tests/*",
16+
"*/xarray/core/dask_array_compat.py",
17+
"*/xarray/core/npcompat.py",
18+
"*/xarray/core/pdcompat.py",
19+
"*/xarray/core/pycompat.py",
20+
"*/xarray/core/types.py",
21+
]
22+
source = ["xarray"]

0 commit comments

Comments
 (0)